Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Last Reference Date - non backed-up/non migrated dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Last Reference Date - non backed-up/non migrated dataset
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: 182
Location: UK

PostPosted: Wed Jul 04, 2012 6:40 pm    Post subject:
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    Post subject:
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: 1777
Location: Bloomington, IL

PostPosted: Wed Jul 04, 2012 7:00 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Fri Jul 06, 2012 6:16 pm    Post subject:
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: 8593
Location: Back in jolly old England

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

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

Global Moderator


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

PostPosted: Fri Jul 06, 2012 10:23 pm    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us