Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to append current time as a qualifier for a PS in a job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Arun_Tupili

New User


Joined: 18 Nov 2008
Posts: 2
Location: Norwich, UK

PostPosted: Tue May 04, 2010 11:02 pm    Post subject: How to append current time as a qualifier for a PS in a job
Reply with quote

Hi,

I have a job which runs hourly in a day.
Every hour it runs, the data would be written into the output file.
I need to append the current date as a qualifier to the PS, so that I can easily recognise all the files for the respective day.

For example if the job runs in the morning 9:20:21 AM then the file should look like NUTSO.ARUN.DATE04052010.TIME092021

For example if the job runs in the evening 20:05:17 AM then the file should look like NUTSO.ARUN.DATE04052010.TIME200517

I am currently using our project specific parameters for appending Date as a qualifier in PS. But we do not have the same for Time.

Also I am not interested to use GDG's.

Can you please help.


Thanks
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 04, 2010 11:13 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

You cannot do what you have asked about - your dataset names are invalid. Suggest you look in the JCL manual available via the "IBM Manuals" link at the top of the page.

One way to do what you want is to have the dataset names created dynamically by some predecessor process and then submit the newly created jcl.

Quote:
Also I am not interested to use GDG's.
Your management may have a different interest. . .
What business reason is there to exclude using a GDG?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed May 05, 2010 11:29 am    Post subject:
Reply with quote

You scheduling people will also be a good place to have a chat as most scheduling software have date / time variables built in.

I also echo Dicks comment regarding GDS. Surely the easiest solution from the outset.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed May 05, 2010 11:38 am    Post subject:
Reply with quote

Quote:
I am currently using our project specific parameters for appending Date as a qualifier in PS. But we do not have the same for Time.

Have you checked this with scheduling people as Expat suggested?

Since you have date varialbe already, (which is most probably populated by sheduling software before job submittion ) there is fair chance of having variable for time too.
Back to top
View user's profile Send private message
Arun_Tupili

New User


Joined: 18 Nov 2008
Posts: 2
Location: Norwich, UK

PostPosted: Wed May 05, 2010 10:38 pm    Post subject:
Reply with quote

Hi,

Many thanks for the reply.

I have checked for project specific parameters in our scheduler TWS OPCP and got the required date & time parameters. I was able to use them for appending in dataset name.

Thanks
Arun
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us