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

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: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 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: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post