SMP/E for z/OS Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 2: JCLIN for products with special assembler opcodes

SMP/E for z/OS Commands
SA23-2275-01

Assume that you have a special version of the assembler supporting two additional operation codes, LOOP and ENDLOOP, and that the following JCLIN is to be processed:
//JOB      JOB 'accounting info',MSGLEVEL=(1,1)
//STEP     EXEC PGM=MYASM
//SYSPUNCH DD DSN=&&PUNCH(NEWMOD),;
//         SPACE=(TRK,(1,1,1)),DISP=(,PASS)
//SYSIN    DD *
NEWMOD     CSECT
           .
           .
LOOPSTRT   LOOP
           .
           .
LOOPEND    ENDLOOP
           .
           .
           END NEWMOD
To process this correctly and have SMP/E recognize that LOOP and ENDLOOP are opcodes, you should set up the following OPCODE member (in this case, named SMPPRM01):
KEY=LOOP    TYPE=OPCODE.
KEY=ENDLOOP TYPE=OPCODE.
The command to execute the JCLIN should then be as follows:
SET      BDY(XYZTST1)       /* Process zone XYZTST1.    */.
JCLIN    ASM(MYASM)         /* Special assembler.       */
         OPCODE(SMPPRM01)   /* Special opcode list.     */.

When SMP/E processes this input, it recognizes that MYASM is an assembler program, and that LOOP and ENDLOOP are operation codes.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014