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
No new posts Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
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 How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm

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