Need for an idea to create an loop

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
balaji19
Member
Posts: 1
Joined: Mon Jun 23, 2014 2:52 pm

Need for an idea to create an loop

Post by balaji19 » Mon Jun 23, 2014 3:00 pm

Hi guys,
Need an favour ! In my job i try for an ftp step , if the step fails the job appends , i would like an way so that i can try for that FTP step for three times , if after three times job step fails , then we job can append , during this times i would like to avoid to avoid all the previous step

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Mon Jun 23, 2014 11:12 pm

A) Split the FTP into it's own step. That way you do not have to worry about restarts and any downstream jobs can carry on.
B) Assuming this is a production job, update the run documentation to say 'try up to 3 times before calling support'
Regards
Nic

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others