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

How to find the Last reference date in migrated PS... REXX


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

New User


Joined: 26 Nov 2008
Posts: 10
Location: India

PostPosted: Thu Nov 27, 2008 11:37 am
Reply with quote

I need a help in REXX...!

My requirement:

I wanted to find out the Last referenced date of a migrated PS without pulling it to DASD by HRECALL.

The Last referenced date of Any dataset in DASD could be found using the LISTDSI function. Also LISTCAT gives information about the created date but not the Last referenced date.

The TSO command HLIST gives the last referenced date even for a migrated dataset but OUTTRAP doesnot capture this output.


Is there any other function like OUTTRAP which could perform this activity?
Is there any other way of achieving this requirement in REXX?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Nov 27, 2008 12:02 pm
Reply with quote

You can use the LMDLIST service. ZDLRDATE contains the last referenced date.

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

Global Moderator


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

PostPosted: Thu Nov 27, 2008 12:12 pm
Reply with quote

Look at the HLIST statement and investigate ODS to write your output to a dataset.

Should also be available in DCOLLECT records.
Back to top
View user's profile Send private message
jones.jebaraj84

New User


Joined: 26 Nov 2008
Posts: 10
Location: India

PostPosted: Wed Dec 03, 2008 1:42 pm
Reply with quote

thanks for your reply... icon_smile.gif

I tried out the LMDLIST but i have the same problem there... It works only when the dataset in the DASD.. My requirement is i want to check the Last referenced date when the dataset is in migrated status...
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Dec 03, 2008 10:14 pm
Reply with quote

Have you tried EXPAT's suggestion?
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