Previous Topic: Variable List for JCLNeatNext Topic: Changing JCLNeat Options from REXX


REXX Data Stack Usage by JCLNeat

Dynamic JCL Statement Insertion and Deletion is a JCLNeat feature that uses the REXX data stack to stage JCL statements that the REXX programs are to insert.

JCL statements are placed on the stack using existing REXX queue and push functions. JCLNeat retrieves these statements and places them into the output JCL based on where they were added. The stack elements consist of two fields: the first field is a 1-byte indicator of either A (after) or B (before) and the second field is an 80-byte JCL record.

The indicator bytes place the inserted JCL before or after the statement being processed when the new records are added. Statements that are added before the current statement are added verbatim with no additional processing. Statements that are added after are processed by JCLNeat as if they were read in with the initial job stream, except for any processing by the REXX program. Inserted JCL statements can span multiple 80-byte records.

Note: For more details, see the sample REXX program CAZ1NREX.