09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LASTCCSpecifies that the value to be reset is the condition code set by the immediatelypreceding functional command.numberIs the value to be assigned to MAXCC or LASTCC. The maximum value is 16;a greater value is reduced to 16. If the value of LASTCC is greater thanMAXCC, MAXCC is set equal to the larger value.Using the SET command and MAXCC ParameterIn this example, if the maximum condition code is 0, the program lists an entryfrom a catalog and prints a data set. If the maximum condition code is not 0, setthe maximum condition code to 8.CANCEL CommandIF MAXCC=0THEN DOLISTCAT CATALOG (AMASTCAT/MST27) ENT (MN01.B005)PRINT INFILE (AJK006)ENDELSE ...SET MAXCC=8You can use the CANCEL command to end processing of the current job step.When you use the CANCEL command, the remainder of the command stream isnot processed, including any part of an unprocessed IF-THEN-ELSE statement orDO-END pair. The step ends with a return code in register 15 equal to the highestcondition code encountered be<strong>for</strong>e the CANCEL command was run. A terminationmessage is printed indicating that the CANCEL command was issued. The syntaxof the CANCEL command is:CANCELPARM CommandIt has no parameters.Using the CANCEL CommandIn this example, if the maximum condition code is not 0, the maximum conditioncode is set to 12 and the step ends with CANCEL.IF MAXCC=0THEN DOLISTCAT CATALOG (AMASTCAT/MST27) ENT (MN01.B005)PRINT INFILE (AJK006)ENDELSE D<strong>OS</strong>ET MAXCC=12CANCELENDThe PARM command specifies processing options to be used during execution.These options remain in effect until changed by another PARM command. You canalso use these options in the PARM field of an EXEC statement (in the job controllanguage (JCL)). The syntax of the PARM command is:Chapter 2. Modal Commands 21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!