How can ALLOCATE variable information be logged to disk?
search cancel

How can ALLOCATE variable information be logged to disk?

book

Article ID: 64266

calendar_today

Updated On:

Products

Allocate DASD Space and Placement Vantage Storage Resource Manager

Issue/Introduction

ALLOCATE does not dynamically write information to disk. When VANTAGE is installed together with ALLOCATE, there is a way of logging information without consuming ALLOCATE resources.

 

Resolution

ALLOCATE WRITE statements have to be included in the ASR routine and option PLSOPT98 has to be set to "N", the default. With option PLSOPT98 set to "N" the contents of the WRITE message will be automatically sent to the SYSTEM log.

The WRITE statement should include a message code in the first few positions of the message. Here is an example:

WRITE 'ALLO0001 &DSN PRIMARY &PRIMARY SECONDARY &SECONDARY'

which will show the following information (an example) when the symbolic variables are substituted:

WRITE 'ALLO0001 KIEPE01.DATA PRIMARY 100 SECONDARY 50

VANTAGE MESSAGE AUTOMATION has to be active and running and a CONMSG script has to be loaded and enabled to intercept the WRITE message and submit a job that would write the message to a dataset or printer. Information on how to customize and activate VANTAGE MESSAGE AUTOMATION can be found in the VANTAGE USER GUIDE. 

The Vantage documentation is found here

Here is an example of a VANTAGE CONMSG script that would process the above WRITE message:

<GENERAL>TITLE=Data Sets For System (All)STARTTIME=0000ENDTIME=2359ENDTIMEACTION=EXECUTEEVENT_TYPE=CONMSGSET_FILTER=MCNTXT INCL 'ALLO0001'ACC_FLAG=YMAX_COUNT=1MAX_EXECUTE=99<EVENT_PROCEDURE>SUBSTITUTE_JCL=DSN=HLQ.JCLLIB,MEMBER=TEST2SUBMIT_JOB

The SET_FILTER statement is only coded to intercept ALLO0001 messages. When the message is issued a job is submitted to write the message to a log or printer.