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

Use LISTDSI in REXX to view the created date


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
niceguy

New User


Joined: 21 May 2008
Posts: 7
Location: chennai

PostPosted: Fri May 23, 2008 12:40 pm
Reply with quote

Can we use LISTDSI in REXX to view the created date for a GDG datasets?

I have 1000s of gdg generations like

aa.bb.cc.abc1.g0001v00
aa.bb.cc.abc1.g0002v00
...
aa.bb.cc.abc1.g0010v00

aa.bb.cc.abc2.g0001v00
aa.bb.cc.abc2.g0002v00
...
aa.bb.cc.abc2.g0010v00
...
...
...

aa.bb.cc.zzz1.g0001v00
aa.bb.cc.zzz1.g0002v00
...
aa.bb.cc.zzz1.g0010v00

I'm not sure about the date created. Now I need an output file where I can get the list of gdgs created before a particular date.

how can we do this
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri May 23, 2008 4:19 pm
Reply with quote

Yes, LISTDSI will give you the date created (SYSCREATE).

Be aware of this note:

Quote:

You can use LISTDSI to obtain information about a data set that is available on DASD. LISTDSI does not directly support data that is on tape. LISTDSI supports generation data group (GDG) data sets when using absolute generation names, but does not support relative GDG names. LISTDSI does not support hierarchical file system (HFS) data sets.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri May 23, 2008 5:03 pm
Reply with quote

Yes, I posted only 3 days ago the REXX code that gives you the information that you require and has no problems with tape based generations.

It's in the REXX / CLISt forum, so not too far to look
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
Search our Forums:

Back to Top