restart the job with file name change

jcl interview questions

Moderator: Moderator Group

Post Reply
bejugam
Member
Posts: 2
Joined: Fri Sep 12, 2014 11:17 am

restart the job with file name change

Post by bejugam » Fri Sep 12, 2014 11:27 am

Hi,

i have a concatenated jcl

dd1 dd dsn = file1
file2
file3
file4

then in jcl i need to restart the job by changing the file 2 name with new file name. Could you please let me know how can we do this.?

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

Post by NicC » Mon Sep 15, 2014 3:53 pm

Did you read the manual?

Code: Select all

//step.ddname dd
//          dd dsn=new.dsn
simply write a proc executing IEFBR14, add a dd with several datasets concatenated. Save it and execute it. Then edit the run deck as above.
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