Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Date Appending to the end of dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Date Appending to the end of dataset
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: 1703
Location: Australia

PostPosted: Fri Jun 06, 2008 11:27 am    Post subject:
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    Post subject: Hi
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: 1703
Location: Australia

PostPosted: Tue Jun 10, 2008 3:01 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jun 10, 2008 5:00 pm    Post subject:
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    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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us