Previous Topic: DD Processing Subroutine for JCLNeatNext Topic: EOJ Processing Subroutine for JCLNeat


EOS Processing Subroutine for JCLNeat

The EOS processing subroutine is invoked at the end of every step in the JCL stream. You can place any logic here you want. For example, you may want to make a decision that is based on the total steps or the total number of UNIT=TAPE occurrences.

You can use the IF statement to interrogate all the same variables as for the DD statement (that is, the last generation of JOB/EXEC/DD variables). Once again only one generation of each statement type is active at any one time.

Note: JCLNeat variable modification is unavailable from both the EOS Processing Subroutine for JCLNeat and EOJ Processing Subroutine for JCLNeat. JCLNeat variables are available for interrogation ONLY.

     /********************************************************************/
     /*  Step End  processing Logic                                      */
     /********************************************************************/
A      END_STEP_PROCESSING:
B         SAY ' End Step processing here'
C      Return
A

Defines the name of this subroutine to the DO WHILE loop.

B

The SAY command generates a message on the SYSTSPRT report ddname indicating that END_STEP processing was invoked.

C

Causes control to return to the main DO WHILE loop.