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
 

 

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: 175
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: 1738
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: 6966
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: 1738
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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us