This is what we did. We made a new type-*pgmsrc. This source member has the crtpgm command and any paramaters needed to recreate the program. The program name is equal to this source member. In the comment lines of RPGLE or CLLE we put a line as follows: @m mymodname whatiamattached to X x where X=type of thing I am attached to and x is how to compile me,as a M for module or P for program. *************** Beginning of data ************************************************** ****0001.00 CRTPGM PGM(PGMSLIB/SFC202P) + 0002.00 TEXT('SALES FORECAST REPORT 1.0') + 0003.00 MODULE(*LIBL/SFC202C) + 0004.00 MODULE(*LIBL/SFC202IA) + 0008.00 ENTMOD(*LIBL/SFC202C) + 0009.00 BNDDIR(PGMSLIB/PGMSILE) + 0010.00 ACTGRP(*CALLER) 0011.00 0012.00 UPDPGM PGM(PGMSLIB/SFC202P) + 0013.00 MODULE(modlib1/modnme1 + 0014.00 modlib2/modnme2) ****************** End of data ************************************************** *******

Reply With Quote