How can I change a DD filename is JCL dynamically

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
NOTCH999
Member
Posts: 2
Joined: Tue Jul 15, 2014 9:23 pm

How can I change a DD filename is JCL dynamically

Post by NOTCH999 » Tue Jul 15, 2014 9:42 pm

How can I change a DD filename in my JCL dynamically after my EasyTrieve job completes and has given the new file name? I am getting the new filename in the input file to the Easytrieve job. Then I want to create my new output file from the same Easytrieve job using the new name.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Tue Jul 15, 2014 11:05 pm

It is unclear what you actually want to do, but it would seem that using CALL to an Assembler or COBOL program to do dynamic file allocation is what you want, but why you want to do that I don't know.

NOTCH999
Member
Posts: 2
Joined: Tue Jul 15, 2014 9:23 pm

Post by NOTCH999 » Tue Jul 15, 2014 11:09 pm

The project mgr requests this instead of GDG's. I am not familiar with the COBOL allocation but will research it thx.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Wed Jul 16, 2014 2:06 am

Well, it is very odd to create a home-grown system rather than the one supported by the operating system you are using. You'd better get it all right.

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