stephen linkin houston community college 19-jan-07 © 2002 - mike murach & associates, 2007 -...
TRANSCRIPT
19-Jan-07
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM 1
Stephen LinkinHouston Community College
RESTART And Other Program RESTART And Other Program Execution Facilities Execution Facilities
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
2
ObjectivesObjectives
Applied ObjectivesApplied Objectives Code RESTART On A JOB Statement To Restart A Job:Code RESTART On A JOB Statement To Restart A Job:
a.a. From The Beginning Of The First Job StepFrom The Beginning Of The First Job Step
b.b. From The Beginning Of A Named Job Step From The Beginning Of A Named Job Step Within A Job Or Cataloged ProcedureWithin A Job Or Cataloged Procedure
Assuming a Is Set To WLM Compatibility Mode, Assuming a Is Set To WLM Compatibility Mode, Code PERFORM Parameter On A Code PERFORM Parameter On A JOB Or EXEC Statement To Specify JOB Or EXEC Statement To Specify Performance Group For Job Or Job Step.Performance Group For Job Or Job Step.
Code A Command Statement To Issue Code A Command Statement To Issue An MVS Or JES Command From The An MVS Or JES Command From The JCL Stream.JCL Stream.
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
3
ObjectivesObjectives
Knowledge ObjectivesKnowledge Objectives Explain Checkpoints And How They’re Used In A Job.Explain Checkpoints And How They’re Used In A Job. Describe How And Why Restart Processing Describe How And Why Restart Processing
Is Used.Is Used. Explain What An Automatic Restart Is.Explain What An Automatic Restart Is. Describe What A Performance Group Is.Describe What A Performance Group Is. Name The JES2 And JES3 Statements Name The JES2 And JES3 Statements
Used To:Used To:a.a. Restart A Job When The System FailsRestart A Job When The System Fails
b.b. Send A Message To The OperatorSend A Message To The Operator
c.c. Specify A Job’s System AffinitySpecify A Job’s System Affinity
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
4
Supporting Checkpoints Supporting Checkpoints Programming Languages And UtilitiesProgramming Languages And UtilitiesLanguageLanguage UseUseCOBOL Use the RERUN clause in the I-O-CONTROL paragraph of
the Input-Output Section to generate checkpoints within a COBOL program. The ddname for the data set that stores the checkpoints is specified in the RERUN clause.
PL/I Use the CALL PLICKPT feature to generate checkpoints within a PL/I program. The ddname for the checkpoint data set is SYSCHK.
Assembler language Use the CHKPT macro instruction to generate checkpoints. The DCB macro specifies the ddname for the checkpoint data set.
JCL Use the CHKPT parameter on the DD statement to generate checkpoints whenever the end of a volume is reached for a sequential data set. The ddname for the checkpoint data set is SYSCKEOV.
DFSORT Use the CKPT parameter in sort control statements to generate checkpoints. The ddname for the checkpoint data set is SORTCKPT.
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
5
The CHKPT Parameter Of The DD The CHKPT Parameter Of The DD StatementStatement
The SyntaxThe Syntax
Sample Job Step With EOV CheckpointsSample Job Step With EOV Checkpoints
CHKPT=EOVCHKPT=EOV
//STEP1 EXEC PGM=INVUPD//STEP1 EXEC PGM=INVUPD//INVOUT DD DSN=MM01.INV.OUT,DISP=(NEW,KEEP),//INVOUT DD DSN=MM01.INV.OUT,DISP=(NEW,KEEP),// UNIT=TAPE,VOL=SER=(TAPE01,TAPE02),// UNIT=TAPE,VOL=SER=(TAPE01,TAPE02),// // CHKPT=EOV CHKPT=EOV////SYSCKEOV DD DSN=CHECK.SAVE,DISP=MODSYSCKEOV DD DSN=CHECK.SAVE,DISP=MOD
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
6
The RESTART Parameter Of The The RESTART Parameter Of The JOB StatementJOB Statement
The Syntax The Syntax
RESTART= ( {* } [,checkid] ) {stepname }
{stepname.procstepname}
ValueValue ExplanationExplanation** System is to restart the job at the first job step. StepnameStepname System is to restart the job at the beginning of the
named job step or at a checkpoint within that job step.
stepname.procstepnamestepname.procstepname Restart the job at the beginning of the named job step of the cataloged procedure or at a checkpoint within that job step. Stepname identifies the EXEC statement that calls the procedure and
procstepname identifies the job step within the procedure.checkidcheckid The name of the checkpoint where the system
restarts execution.
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
7
Using The RESTART Parameter Using The RESTART Parameter
A deferred step restartA deferred step restart A deferred checkpoint restartA deferred checkpoint restart//MM01F JOB (36512),'LE MENENDEZ',RESTART=STEP3
//MM01G JOB (36512),'J TAYLOR',RESTART=STEP3.INV3020//MM01H JOB (36512),'M MURACH',RESTART=(STEP2,CKPT4)//SYSCHK DD DSNAME=MM01.CHECK,DISP=OLD
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
8
The RD Parameter Of The JOB The RD Parameter Of The JOB And EXEC Statements And EXEC Statements
The Syntax The Syntax
A JOB statement that uses the RD parameterA JOB statement that uses the RD parameter
An EXEC statement that uses theAn EXEC statement that uses the RD RD parameterparameter
RD= {R}RD= {R} {RNC} {RNC}
{NR} {NR} {NC} {NC}
//MM01A JOB (36512),MENENDEZ,//MM01A JOB (36512),MENENDEZ,RD=RRD=R
//STEP2 EXEC PGM=APRUPD,//STEP2 EXEC PGM=APRUPD,RD=RNCRD=RNC
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
9
RESTART Parameter Of The JES2 RESTART Parameter Of The JES2 /*JOBPARM Statement /*JOBPARM Statement
The Syntax The Syntax
A job that uses the JES2 RESTART parameterA job that uses the JES2 RESTART parameter
RESTART= {Y}RESTART= {Y} { {NN}}
//MM01A JOB (36512),MENENDEZ,NOTIFY=MM01//MM01A JOB (36512),MENENDEZ,NOTIFY=MM01/*JOBPARM/*JOBPARM RESTART=YRESTART=Y
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
10
FAILURE Parameter Of The FAILURE Parameter Of The JES3 //*MAIN StatementJES3 //*MAIN Statement
The SyntaxThe Syntax
Example of using the JES3 FAILURE parameter Example of using the JES3 FAILURE parameter
FAILURE= {RESTART}FAILURE= {RESTART} {CANCEL} {CANCEL}
{HOLD} {HOLD} {PRINT} {PRINT}
//MM01B JOB (36512),MENENDEZ,NOTIFY=MM01//MM01B JOB (36512),MENENDEZ,NOTIFY=MM01//*MAIN //*MAIN FAILURE=HOLDFAILURE=HOLD
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
11
PERFORM Parameter Of The JOB PERFORM Parameter Of The JOB And EXEC Statements And EXEC Statements
The SyntaxThe Syntax
A JOB Statement Using PERFORMA JOB Statement Using PERFORM
An EXEC Statement Using PERFORM An EXEC Statement Using PERFORM
PERFORM=groupPERFORM=group
//MM02D JOB (36512),'G MURACH',//MM02D JOB (36512),'G MURACH',PERFORM=10PERFORM=10
//APRCALC EXEC PGM=APRCALC,//APRCALC EXEC PGM=APRCALC,PERFORM=3PERFORM=3
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
12
JES2 /*MESSAGE Statement JES2 /*MESSAGE Statement
The SyntaxThe Syntax
/*MESSAGE statement sending message to operator/*MESSAGE statement sending message to operator
/*MESSAGE message
12345678901---------------------------------------------71
/*MESSAGE NOTIFY ON-CALL PROGRAMMER IF JOB ABENDS
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
13
JES3 //*OPERATOR Statement JES3 //*OPERATOR Statement
The SyntaxThe Syntax
//*OPERATOR sends message to operator //*OPERATOR sends message to operator
//*OPERATOR message
1234567890-13-------------------------------------------80
//*OPERATOR CALL R MENENDEZ – EXT 22 WITH RESULTS
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
14
The JCL COMMAND Statement The JCL COMMAND Statement
The SyntaxThe Syntax
COMMAND statement requesting execution of COMMAND statement requesting execution of SEND commandSEND command
//[name] COMMAND 'command command-operand'
1234567090-----x--------------------------------------------80//MSG1 COMMAND 'SEND ''PRODUCTION JOB ACCTNG1B IS NOW COMP LETE.'',USER=(MM01)' **SENDS MESSAGE TO MM01**
© 2002 - Mike Murach & Associates, 2007 - HCC, IBM
15
End PresentationEnd Presentation