View previous topic :: View next topic
|
Author |
Message |
Biswajit D
New User
Joined: 17 Apr 2012 Posts: 50 Location: India
|
|
|
|
Looking for a solution:
I was looking for the last reference date for a dataset. I ran HLIST but it did not return me the details since the dataset was never backed up or migrated. Can anyone guide me where should I be looking for this date??
JCL:
Code: |
//HLIST EXEC PGM=IKJEFT01,DYNAMNBR=30
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
HLIST DSNAME('XX.X.DT070412.OLDLOG') -
BOTH ODS('XX.X.XXX') |
Output:
Code: |
1- DFSMSHSM CONTROL DATASET - MIGRATED DATASET-- LISTING ----- AT 08:30::47 ON 12/07/04 FOR SYSTEM=AABB
DATASET NAME MIGRATED LAST REF MIGRATEED TRKS QTY TIMES DS SDSP QTY LAST MIG
ON VOLUME DATE DATE ALLOC 2K BLKS MIG ORG DS 16K BLKS VOLUME
ARC0138I NO MCDS INFORMATION FOUND FOR DATASET XX.X.DT070412.OLDLOG
----- END OF - MIGRATED DATASET - LISTING -----
1- DFSMSHSM CONTROL DATASET - BACKUP DATASET-- LISTING ----- AT 08:30:47 ON 12/07/04 FOR SYSTEM=AABB
ARC0138I NO BCDS INFORMATION FOUND FOR DATASET XX.X.DT070412.OLDLOG
----- END OF - BACKUP DATASET - LISTING ----- |
|
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
The obvious answer would be to look in 3.4
Or does it have to be in batch? |
|
Back to top |
|
|
Biswajit D
New User
Joined: 17 Apr 2012 Posts: 50 Location: India
|
|
|
|
Looking for an option in batch/rexx.. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
The SYSREFDATE variable set by the (external) Rexx LISTDSI function, or the ZDLRDATE variable set by the ISPF LMDLIST service. |
|
Back to top |
|
|
Biswajit D
New User
Joined: 17 Apr 2012 Posts: 50 Location: India
|
|
|
|
ok...i will give it a quick try... |
|
Back to top |
|
|
Biswajit D
New User
Joined: 17 Apr 2012 Posts: 50 Location: India
|
|
|
|
perfect... thanks a lot...
real priviledge to get reply from you... have read n number of your replies... thank you... |
|
Back to top |
|
|
Biswajit D
New User
Joined: 17 Apr 2012 Posts: 50 Location: India
|
|
|
|
next question (might be a very stupid one)... just for purpose of testing something i coded, is this field (last reference date) updatable (i mean thru a piece of code or manually(not expecting this field to be open for manual update, yet curious:) ))???.. i want to test a few conditions where the last access date for a dataset (PS) is 15 days ago... unfortunately... i deleted all my datasets just a couple of days ago just to save DASD ... dont want to wait 15 days to test
i googled a bit but did not find anything substantial... if this is possible, is there a place where i would get such info (any doc, reading material, manual...) |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
SMF data |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Biswajit D wrote: |
next question (might be a very stupid one)... just for purpose of testing something i coded, is this field (last reference date) updatable (i mean thru a piece of code or manually(not expecting this field to be open for manual update, yet curious:) ))??? |
Technically yes (after all, how could MVS set this date if it were not modifiable?) However, we're talking serious system-level access here. I wouldn't try this without written permission from the storage management workgroup. |
|
Back to top |
|
|
Biswajit D
New User
Joined: 17 Apr 2012 Posts: 50 Location: India
|
|
|
|
ok... scrapped the idea... |
|
Back to top |
|
|
Peter Nancollis
New User
Joined: 15 Mar 2011 Posts: 47 Location: UK
|
|
|
|
Biswajit D wrote: |
.. dont want to wait 15 days to test
|
why not temporarily change the elapsed period from 15 to 1 day ... then test the code tomorrow? |
|
Back to top |
|
|
|