REGARDING IF STATEMENTS



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

REGARDING IF STATEMENTS

Postby pradeepgowda » Thu Apr 01, 2010 4:44 pm

//JOB RESTART=STEP2
//STEP1 EXEC PGM=IEFBR14,COND=ONLY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
// IF RC = 4 THEN
//STEP2 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
// ELSE
//STEP3 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//SYSIN DD DUMMY
// END-IF
//STEP4 EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD *
//SYSIN DD DUMMY
/*
WHAT WILL HAPPEN IF WE GIVE RESTART=STEP2
pradeepgowda
 
Posts: 40
Joined: Mon Jan 04, 2010 4:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: REGARDING IF STATEMENTS

 

Re: REGARDING IF STATEMENTS

Postby Robert Sample » Thu Apr 01, 2010 4:58 pm

What does section 17.1.9.2 Considerations for Restarted Jobs in the JCL Language Reference manual tell you?
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: REGARDING IF STATEMENTS

Postby expat » Tue Apr 06, 2010 2:54 pm

Or of course, what happened when you tried it ?
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post