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

Date Appending to the end of dataset


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

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Fri Jun 06, 2008 11:12 am
Reply with quote

Hi

I am creating backup of GDG version dated from 2007 october. I need to append the create date of the old GDG version to the newly created PS file.

Please let me know how can i do it?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Jun 06, 2008 11:27 am
Reply with quote

Hi,

run a LISTC command against the required datasets, this will give you the creation date, you will need to massage the output, but this will be a good starting point.

This has been discussed previously.


Gerry
Back to top
View user's profile Send private message
sun_job

New User


Joined: 18 Sep 2007
Posts: 73
Location: Bangalore

PostPosted: Fri Jun 06, 2008 11:40 am
Reply with quote

Please tell me in detail
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Jun 10, 2008 3:01 pm
Reply with quote

Hi,
here is the code to run the LISTC command.

Code:
//LISTCAT  EXEC PGM=IDCAMS                                             
//SYSPRINT DD SYSOUT=*                                                 
//LSTENTRY DD DSN=OUTPUT-FILE,                                         
//            DISP=(,CATLG,DELETE),                                   
//            UNIT=SYSDA,                                             
//            SPACE=(TRK,(100,50),RLSE),                               
//            DCB=(RECFM=VB,LRECL=137)                                 
//SYSIN    DD *                                                       
  LISTCAT -                                                           
        LVL(A.B) ALL OFILE(LSTENTRY)                                   
/*                                                                     


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 10, 2008 5:00 pm
Reply with quote

Why do you need another backup ?

Does HSM (or whatever ILM siftware you have ) take a backup automatically.

A very similar topic was recently discussed, so please search the forum before posting.
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top