Passing parameters to EQANMDBG using the PARM string and EQANMDBG DD statement

With this method you can put the name of the user program to be debugged as part of the PARM string, and then specify all other z/OS® Debugger run-time options by using the EQANMDBG DD statement.

This can be desirable if you need to pass the same run-time parameters to several programs, you have room in the PARM string to add the name of the program to be debugged, but you do not have room to add all of the run-time parameters to the PARM string.

When you use this method, you must do the following:

  • Include an EQANMDBG DD statement that includes, at a minimum, an asterisk as the first positional parameter to indicate that the user-program name is to be taken from the PARM string.
  • Modify the PARM string to include the user-program name followed by a slash at the beginning of the PARM string.

The following table compares original JCL and modified JCL:

Original JCL Modified JCL
//STEP1 EXEC PGM=MYPROG,PARM='ABC,X(12)'
 ...
//
//STEP1 EXEC PGM=EQANMDBG,
// PARM='MYPROG/ABC,X(12)'
//EQANMDBG DD *
*,TEST(ALL,INSPIN,,MFI:*),NATLANG(ENU)
/*
 ...
//