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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to find the Last reference date in migrated PS... REXX
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: 2360
Location: Israel

PostPosted: Thu Nov 27, 2008 12:02 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 27, 2008 12:12 pm    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Wed Dec 03, 2008 10:14 pm    Post subject: Reply to: How to find the Last reference date in migrated PS
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
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 Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 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