EXEC purpose narrative



The EXEC Statement on the previous slide executes a program (PGM=), with program names being restricted to no more than 8 characters.

The REGION= operand is coded in the same way as for the JOB statement, but if present on both, the JOB statement operand will override that on the EXEC statement.

The TIME= operand on the EXEC statement is coded in the same way as on the JOB statement, but note the text opposite.

EXEC Statement purpose - narrative



PGM=

This identifies the specific program to be executed. Program names are restricted to a maximum of 8 characters, due to the size of directory entries in the library holding the program.

REGION=

This operand assigns memory, RAM if you like, for this job step Too small a value causes the JOB to ABEND. Values on the JOB statement will override this. MEMLIMIT is used to assign memory above the 2GB boundary.

TIME=

This sets the maximum CPU occupancy for this job step, but remember that TIME on the JOB statement still sets the maximum limit for the job as a whole.

What this means is that if TIME= on the EXEC statement is likely to cause the JOB to exceed the limit established by TIME= on the JOB statement, the job step will fail with a S322 ABEND.

Copyright © Legac-e Education 2002-