z/OS JES2 Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


$#REP – Replace a work or characteristics JOE

z/OS JES2 Macros
SA32-0996-00

Use $#REP to replace a work JOE with a new work and characteristics JOE. JES2 checks to be certain that enough free JOEs are available to add the new JOE. If JES2 determines there are not enough JOEs, it optionally issues a $WAIT on behalf of the caller and creates the required free JOEs.

Format description

Read syntax diagramSkip visual syntax diagram
>>-+--------+--$#REP--,JOA=--+-addr-------+--------------------->
   '-symbol-'                '-(--R--n--)-'   

>--+---------------------+--,REMJOE=--+-addr-------+------------>
   |             .-NO--. |            '-(--R--n--)-'   
   '-,COPYJWEL=--+-YES-+-'                             

>--+-----------------+--+-------------------------+------------->
   |         .-YES-. |  '-,ERRET=--+-label------+-'   
   '-,WAIT=--+-NO--+-'             '-(--R--n--)-'     

>--+-------------------------+---------------------------------><
   '-,OKRET=--+-label------+-'   
              '-(--R--n--)-'     

JOA=
Specifies the address or a register (R2-R10) that contains the address of a prototype or real artificial JOE (JOA) whose content replaces the current real work JOE and characteristics JOE content.
Note:
  1. A real JOA must be specified if REMJOE= is not specified.
  2. If a read mode JOA is passed on JOA=, this service automatically refreshes the JOA before returning to its caller.
COPYJWEL=
Specifies that the JWELs associated with the JOE that is to be replaced are to be copied to the JOE being created (YES) or discarded (NO).
REMJOE=
Specifies the address or a register (R2-R10) that contains the address of the work JOE that is replaced by this service.
Note: REMJOE= must be specified if a prototype JOA is specified for the JOA= parameter.
WAIT=
Specifies whether (YES) or not (NO) JES2 is to issue a $WAIT macro if the JOT is full and cannot immediately add the new JOE. WAIT=YES is the default but if overridden with WAIT=NO and the JOT is also full, processing fails with return code 4.
ERRET=
Specifies a label or register that contains the address of a routine to receive control if processing is not successful (a non-zero return code is returned in R15).
OKRET=
Specifies a label or register that contains the address of a routine to receive control if processing is successful (a 0 return code is returned in R15).

Return codes

The following return codes (decimal) are returned in register 15.
Return Code
Meaning
0
Processing successful. New JOE added.
4
Processing failed. The JOT is full; JES2 could not issue a $WAIT to create a new free JOE because WAIT=NO was explicitly specified.
8
Processing failed. The SYSOUT class was not valid; therefore, JES2 did not remove the JOE specified.

Environment

  • Main task.
  • $WAIT can occur.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014