From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of David FOXWELL
Sent: Friday, May 23, 2008 10:16 AM
To: RPG programming on the AS400 / iSeries
Subject: Help with my first SRVPGM
I've just created my first SRVPGM. As I had to create a new file, I wrote
a module to manage all the operations on that file and created a SRVPGM
SP1 on that module.
Like this CRTSRVPGM P1 BNDSRVPGM(SRVPGMREF) where SRVPGMREF has error
Now, I have another module M2 that uses this SP1.
A programe P1 has to call functions in M2.
I wanted to create SP2, a SRVPGM with M2. How should I be doing this ?
At the moment I did CRTSRVPGM P2 BNDSRVPGM(SRVPGMREF CLTFSC)
That way I add to the list of service programs each time. I don't know how
to automate this process.
As up till now we never used service programs, all the modules just got
thrown in to huge BNDDIRs and then the same compile command could be used
for all the programs :
CRTPGM PGM(&IOBJLIB/&IPGM) MODULE(&IOBJLIB/&IPGM) +
ENTMOD(*PGM) BNDDIR(&IOBJLIB/&IPGM) +
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives