Calling MVSCASPB

Call MVSCASPB using the following syntax to provide access to the job status information held in the JES spool files.

Syntax

call mvscaspb using field-name

Parameters

field-name
The parent field that holds the mfpubcas copybook fields.

Example

Define a data structure in Working Storage to include mfpubcas copybook fields:
       01  pubcas-area.
           copy 'mfpubcas.cpy' replacing  ==()== by ==WS==.
Call mvscaspb:
call 'mvscaspb' using  pubcas-area

Comments:

When compiling your calling program on Unix/Linux platforms, you should define where mvscaspb is located so that it can be located by the Run Time System. If compiling a 64Bit program, include the directive -dmvscaspb@mvscaspb64.so. (For 32Bit programs, this is not necessary, but including the directive -dmvscaspb@mvscaspb.so will not cause a problem.)