Available DD parms for DDPARM parameter in PCL

Document ID : KB000054914
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

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.

Solution:

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 entryName for which alternative ddname is substituted
1SYSLIN
2Not applicable
3Not applicable
4SYSLIB
5SYSIN
6SYSPRINT
7SYSPUNCH
8SYSUT1
9SYSUT2
10SYSUT3
11SYSUT4
12SYSTERM
13SYSUT5
14SYSUT6
15SYSUT7
16SYSADATA
17SYSJAVA
18SYSDEBUG
19SYSMDECK
20SYSOPTF
21DBRMLIB

The correct (full) ddparm needs to match this list:
DDPARM=('SYSLIN',,,'SYSLIB','SYSIN','SYSPRINT','SYSPUNCH','SYSUT1','SYSUT2','SYSUT3','SYSUT4','SYSTERM','SYSUT5','SYSUT6',
'SYSUT7','SYSADATA','SYSJAVA','SYSDEBUG','SYSMDECK','SYSOPTF','DBRMLIB')

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.