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 store files in MVS with date and time ??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Anand_Kannan

New User


Joined: 09 Jun 2005
Posts: 3

PostPosted: Thu Jun 09, 2005 5:10 pm    Post subject: How to store files in MVS with date and time ??
Reply with quote

Hi all,

I need to store a File in MVS with file name having latest Date/Time when the program was executed, so that we could re-use the same file again in future by passing the Date/Time through JCL. I.e we want to store the files with date and time. Could Date/Time be stored in GDG and if so how? If not what else are the options?

Kindly let me know how to solve this.

Regards,
Anand
Back to top
View user's profile Send private message

MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 09, 2005 7:42 pm    Post subject:
Reply with quote

Try to read this post:
http://ibmmainframes.com/viewtopic.php?t=2568&highlight=date
In my opinion, if you are working in Prod through a scheduler you must use scheduler variable as OPIADETE/OCDATE for TME10 OPC and if you are not you can use variable as Superk's sample or through a PROC or a rexx.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Jun 09, 2005 10:22 pm    Post subject: Re: How to store files in MVS with date and time ??
Reply with quote

How granular do your date and time values need to be? I could see using GDG's if you expected multiple occurences of files with the exact same date and time values. Otherwise, it seems to me that using GDG's would be a wasted effort. Don't forget that you need a GDG base defined BEFORE you can create a new generation, so you'd have to take that fact into account. Would you be pre-defining all of the possible bases, or would your job logic need to be able to define the bases "on the fly"?
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm

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