Where does the $US command acquire the LMOD DATE values?
search cancel

Where does the $US command acquire the LMOD DATE values?

book

Article ID: 46695

calendar_today

Updated On:

Products

ASM2- STORAGE MANAGEMENT ASM2 Backup and Restore

Issue/Introduction

The $US command reports the LAST MOD. Where is this value stored and how do we get this value? It always seems to be displayed as 00-00-00.

 

Environment

Release: ASM2..00200-4.2-ASM2-Backup and Restore
Component:

Resolution

The $US command will obtain information from the FMT1 DSCB.

Sample Report

$US INDEX(MFLVOL.PS.TEST1)                                              00
                                                                         
 USE COUNT LAST USE          LAST MOD   MODTIM MODJOB/USER VOLSER DSNAME        
                   09-15-2016        00-00-00                                       TSU124  MFLVOL.PS.TEST1
 '$US' ENDED                                                              

The $US command will display a LAST MOD  only if the CA ASM2 usermod for open processing is installed (Usermod for IFG0196W).

To read the report correctly, in the sample provided on a system without CA ASM2's usermod, then the LAST USE filed is the Last Mod value. Basically, this is the IBM Last Referenced Date found in the FMT1 DSCB. 

Note that in the sample the LAST USE field for the test file is updated but the LAST MOD, MODTIM, and MODJOB/USER are blank. This information is only available through the CA SM2 usermod.       

The best method to acquire information from the VTOC or FMT1 DSCB for a selected data set or volume is to utilize CA RAVP command strings.

Example output string

$RS OSCAT LEVEL(MFLVOL.PS) -                                           
PRINT(NEW (DSN VOL LDATE LSTUS))                                         
. DSNAME                                        VOLUME      LDATE      LSTUS     
. MFLVOL.PS.TEST1                           TSU124      2016259   09/15/2016
. MFLVOL.PS.TEST2                           TSU044                      00/00/0000
. MFLVOL.PS.TEST3                           TSU008                      00/00/0000

Please note that each field has its own format:

LDATE is in Julian format

LSTUS is in Gregorian format

All these files were created at the same time but only the file named MFLVOL.PS.TEST1 was edited the same day. It will show a Last Referenced date in the FMT1 DSCB. The other 2 files have yet to be referenced so the Last Referenced Date in the FMT1 DSCB has yet to be updated and the report will show 00/00/0000.

Additional Information:

Please see the CA RSVP User Guide Release 1.0 or the CA ASM2 Backup and Restore RSVP Reference Guide for command string details.