Change the input name of the PS file in 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
sushantsaraf
Member
Posts: 2
Joined: Fri Jun 20, 2014 11:56 pm

Change the input name of the PS file in JCL dynamically

Post by sushantsaraf » Sat Jun 21, 2014 12:07 am

HI All,

I need to change the input file name containing year (YYYY) parameter as a part of file name. for eg: my input file name is xxxx.xxxx.YR2014 I want to pass dynamic value (current year) in place of 2014 in such a way that it takes current year every time I use this file.
In 2015 it should automatically take 2015 and my input file should be xxxx.xxxx.YR2015

Thanks in advance!
Sushant Saraf

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

Post by NicC » Sun Jun 22, 2014 11:51 pm

Are you talking about a scheduled job? If so what scheduler? Have you spoken to your scheduling people re system variables that can be substituted by the scheduler.
Regards
Nic

sushantsaraf
Member
Posts: 2
Joined: Fri Jun 20, 2014 11:56 pm

Post by sushantsaraf » Mon Jun 23, 2014 12:36 am

Yes this job will be scheduled to run every period, scheduler I m using is ESP scheduler. Can you please detail me little more how can I substitute a variable in place of year in my PS file in ESP sceduler..thanks for ur reply

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:08 pm

I assume 'ur' really means 'your'.

I have only used OPC (now TWS) and that was eons ago. As I said - speak to your scheduling people.
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