How can I set up Message Automation scripts so that I can capture data for the Data Set Groups object at specific times for the purpose of then being able to create trend reports on such data?
Vantage
Here is the setup to have timed DTOC scans and perform the update of the Data Set Groups object, and then log that data for trending purposes:
1. This script will issue the command to perform a DTOC scan at the times desired. This script can be called DTOCSCAN and is placed in the AUTOSCR lib.
<GENERAL>
EVENT_TYPE=GOA
TITLE=Trigger DTOC Scan
DESCRIPTION1=This script will trigger a DTOC scan at specific times
SIMULATE=N
ENABLED=Y
MONITOR=N
LOAD_SCRIPT=Y
STARTTIME=0000
ENDTIME=2400
PERFORM_EVT_PROC=ON_DAY=ALL,AT_TIME=0600
<EVENT_PROCEDURE>
CMD=F SAMS,REFRESH,DTOCS
PERFORM_CMD
To Do: Adjust times when DTOC scan is to be triggered.
To Do: Adjust name of your Vantage STC name
2. This Console Message script will “look” for the message indicating the end of the DTOC collection and will issue the command to generate the application space usage data. That message is: VAN0489I DTOC Interval Collection Complete. This script can be called FIREGRPS and is placed in the AUTOSCR lib.
<GENERAL>
EVENT_TYPE=CONMSG
TITLE=Fire GRPSTATS after DTOC Scan
ENABLED=Y
LOAD_SCRIPT=Y
STARTTIME=0000
ENDTIME=2400
MAX_EXECUTE=99
ACC_FLAG=Y
MAX_COUNT=1
SHUTDOWNACTION=DISCARD
SET_FILTER=MCNTXT INCL 'VAN0489I'
<EVENT_PROCEDURE>
CMD=F SAMS,AUTO,FIRE=SYSTEM,GRPSTATS
PERFORM_CMD
To Do: Adjust name of your Vantage STC name
To Do: Add entry to MSGTRIGS member of Parmlib
(or have blank line in MSGTRIGS)
3. This Console Message script will “look” for the message indicating the end of the GRPSTATS process and will issue the command to fire the script to Log the object data. That message is: VAN0735I Automation Script SYSTEM GRPSTATS: This script could be called LOGRPCBS and is placed in the AUTOSCR lib.
<GENERAL>
EVENT_TYPE=CONMSG
TITLE=Fire script to log GRPCBS data
DESCRIPTION1=This script "looks" for the end of the GRPSTATS process
DESCRIPTION2=and will fire the GRPCBS script to log that data.
ENABLED=Y
LOAD_SCRIPT=Y
STARTTIME=0000
ENDTIME=2400
MAX_EXECUTE=10
ACC_FLAG=Y
MAX_COUNT=1
SHUTDOWNACTION=SAVE
SET_FILTER=MCNTXT INCL 'VAN0735I GRPSTATS'
<EVENT_PROCEDURE>
IF_RECORDS_GT=0
CMD=F SAMS,AUTO,FIRE=LOG,GRPCBS
PERFORM_CMD
ELSE
ENDIF
To Do: Adjust name of your Vantage STC name
To Do: Add entry to MSGTRIGS member of Parmlib
(or have blank line in MSGTRIGS)
4. This is the GRPCBS script in the LOGSCR lib that will log the Group Stats object data.
<GENERAL>
EVENT_TYPE=LOG
TITLE=Data Set Group
DESCRIPTION1=Log Data Set Groups Data
ENABLED=Y
LOAD_SCRIPT=Y
STARTTIME=0000
ENDTIME=2400
<EVENT_PROCEDURE>
SELECT_OBJ=GRPCBS
SET_LASTINTVL
SET_LOGBREAK=WEEK
SET_LOGSHOTS=0020
EXECUTE
DO_FOR_ALL
LOG_DATA
NEXT
ENDDO