How can I use SYSIN to input Utility control statements to Batch Processor?

Document ID : KB000053745
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

When calling program, UTLGLCTL, I would like to use a SYSIN DD to point to an input dataset that contains Utility control statements, in this case, Fast Unload statements. This will enable us to use control statements generated by a Rexx Exec.

I have tested this but I get the following error:

BPA0015E: UTILITY APPLICATION FOUND NO INPUT.

Solution:

The following Batch Processor syntax allows the use of SYSIN to input the Utility control statements:

 .CALL UTLGLCTL PARM(ssid,)                                            + 
  INDDN(SYSIN) ALLOC(NO) OUTDDN(PTIMSG)
 .ALLOC FI(SYSIN) DA('the dataset with control statements') MOD
 .DATA
 .ENDDATA

The SYSIN dataset must have a disposition of MOD.
There should be nothing coded between the .DATA and .ENDDATA