IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Arun_Tupili

New User


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

PostPosted: Tue May 04, 2010 11:02 pm
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

Moderator Emeritus


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

PostPosted: Tue May 04, 2010 11:13 pm
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: 8797
Location: Welsh Wales

PostPosted: Wed May 05, 2010 11:29 am
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
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: 3
Location: Norwich, UK

PostPosted: Wed May 05, 2010 10:38 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Changeman - how can we know the curr... Compuware & Other Tools 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top