On 14 March 2012 16:13, Lizette Koehler <[email protected]> wrote:
>>
>> Can a batch job capture the results of a JES2 command into a sequential 
>> dataset

>> $dq
>>
>> $HASP647      6 XEQ S ZOS1
>> $HASP644      8 OUT ZOS1
>> $HASP643    904 PPU LOCAL             ANY
>> $HASP646 15.8046 PERCENT SPOOL UTILIZATION

> You will need to use the SDSF REXX interface to invoke the console or use
> the SDSF Batch function that captures SYSLOG.
>
> I am not sure there are other options.
>
> The other option is to scan syslog after it is written to dasd.

And yet another option is to use REXX GETMSG, along with the
appropriate CONSOLE and CONSPROF facilities. This should allow easy
retrieval of exactly the command responses you want. These facilities
are scatter-documented over the TSO/E Programming Reference, the REXX
Reference, and the TSO/E System Programming Command Reference.

In that last book, look at the CART subcommand of console. The example
is that of issuing a JES2 command and retrieving exactly and only the
response to it. Writing the response to your sequential dataset is up
to you, but that is trivial using REXX.

You will of course need appropriate authorization no matter which
approach you use.

Tony H.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to