Show date and time of last RCLSTG

Show the date and time of the last RCLSTG run on the system compiled at V4R5M0, check out this tip for the details.

This shows the date and time of the last RCLSTG run on the system in a user-friendly format, compiled at V4R5M...

0.

  
		 pgm
             DCL        VAR(&SYS) TYPE(*CHAR) LEN(8)
             DCL        VAR(&DATE) TYPE(*CHAR) LEN(8)
             DCL        VAR(&time) TYPE(*CHAR) LEN(8)
             DCL        VAR(&date1) TYPE(*CHAR) LEN(2)
             DCL        VAR(&date2) TYPE(*CHAR) LEN(2)
             DCL        VAR(&date3) TYPE(*CHAR) LEN(2)
             DCL        VAR(&time1) TYPE(*CHAR) LEN(2)
             DCL        VAR(&time2) TYPE(*CHAR) LEN(2)
             DCL        VAR(&time3) TYPE(*CHAR) LEN(2)
             RTVDTAARA  DTAARA(QUSRSYS/QRCLSTG (52 8)) RTNVAR(&DATE)
             RTVDTAARA  DTAARA(QUSRSYS/QRCLSTG (61 8)) RTNVAR(&time)
             RTVNETA    SYSNAME(&SYS)

             CHGVAR VAR(&date1) VALUE(%SST(&date 5 2))
             CHGVAR VAR(&date2) VALUE(%SST(&date 3 2))
             CHGVAR VAR(&date3) VALUE(%SST(&date 1 2))

             CHGVAR VAR(&time1) VALUE(%SST(&time 1 2))
             CHGVAR VAR(&time2) VALUE(%SST(&time 3 2))
             CHGVAR VAR(&time3) VALUE(%SST(&time 5 2))

             SNDPGMMSG  MSG(&SYS || '''' || 's last RCLSTG run was +
                          on ' || &DATE1 || '/' || &DATE2 || '/' || +
                          &DATE3 || ' at ' || &TIME1 || ':' || +
                          &TIME2 || ':' || &TIME3)

ENDPGM 

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our systems management gurus are waiting to answer your technical questions.


This was last published in December 2001

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close