Trying to add DBRMLIB as a DD in a PCL to implement a DB2 COBOL precompile but cannot find the appropriate DD statement for adding to the DDPARM.
The key information on this topic can be found in the 'Enterprise Cobol For OS" manual entitled "Programming Guide" in the section reached by expanding the menu tree for topics "Part 2 Compiling and debugging your program", "Compiling under z/OS", "Starting the complier from an assembler program".
Here, for IGYCRCTL, the "ddnamelist" (which effectively dictates the DDPARM syntax), is given as follows:
|Alternative ddname 8-byte entry||Name for which alternative ddname is substituted|
The correct (full) ddparm needs to match this list:
In reality, this list need only include ddnames for which there is a PCL dd statement, so any other ddnames can be removed from the list so long as the correct number of commas still remain, e.g.
DDPARM=('SYSLIN',,,'SYSLIB','SYSIN','SYSPRINT',,,,,,,,,,,,,,,'DBRMLIB') - REMEMBER the number of commas are IMPORTANT when building a DDPARM in a PCL.