Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8657
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 How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need to identify top 10 costly or tim... ashek15 DB2 4 Wed Feb 14, 2018 3:20 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us