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

Last Reference Date - non backed-up/non migrated dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Biswajit D

New User


Joined: 17 Apr 2012
Posts: 50
Location: India

PostPosted: Wed Jul 04, 2012 6:35 pm
Reply with quote

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
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Wed Jul 04, 2012 6:40 pm
Reply with quote

The obvious answer would be to look in 3.4

Or does it have to be in batch?
Back to top
View user's profile Send private message
Biswajit D

New User


Joined: 17 Apr 2012
Posts: 50
Location: India

PostPosted: Wed Jul 04, 2012 6:41 pm
Reply with quote

icon_smile.gif

Looking for an option in batch/rexx..
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Jul 04, 2012 7:00 pm
Reply with quote

The SYSREFDATE variable set by the (external) Rexx LISTDSI function, or the ZDLRDATE variable set by the ISPF LMDLIST service.
Back to top
View user's profile Send private message
Biswajit D

New User


Joined: 17 Apr 2012
Posts: 50
Location: India

PostPosted: Wed Jul 04, 2012 7:04 pm
Reply with quote

ok...i will give it a quick try...
Back to top
View user's profile Send private message
Biswajit D

New User


Joined: 17 Apr 2012
Posts: 50
Location: India

PostPosted: Wed Jul 04, 2012 7:10 pm
Reply with quote

perfect... thanks a lot...

real priviledge to get reply from you... have read n number of your replies... thank you...
Back to top
View user's profile Send private message
Biswajit D

New User


Joined: 17 Apr 2012
Posts: 50
Location: India

PostPosted: Fri Jul 06, 2012 5:37 pm
Reply with quote

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 icon_redface.gif ... dont want to wait 15 days to test icon_smile.gif

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jul 06, 2012 6:16 pm
Reply with quote

ispf variables

system variables
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jul 06, 2012 8:57 pm
Reply with quote

SMF data
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Jul 06, 2012 10:23 pm
Reply with quote

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
View user's profile Send private message
Biswajit D

New User


Joined: 17 Apr 2012
Posts: 50
Location: India

PostPosted: Mon Jul 09, 2012 4:58 pm
Reply with quote

ok... scrapped the idea... icon_wink.gif
Back to top
View user's profile Send private message
Peter Nancollis

New User


Joined: 15 Mar 2011
Posts: 47
Location: UK

PostPosted: Tue Jul 10, 2012 2:52 am
Reply with quote

Biswajit D wrote:
.. dont want to wait 15 days to test icon_smile.gif

why not temporarily change the elapsed period from 15 to 1 day ... then test the code tomorrow?
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top