Sending data to the JES spool data sets
Application programs can send data to the JES spool data sets using the same method that is used to send output to an alternate terminal. Use the DL/I call to change the output destination to a JES spool data set.
Use the DL/I ISRT or PURG call to insert a message.
The options list parameter on the CHNG and SETO calls contains
the data set printer processing options. These options direct the output to the appropriate IMS Spool API data set. These options are validated for the DL/I
call by the MVSScheduler JCL Facility (SJF). If the options are invalid, error codes are returned to
the application. To receive the error information, the application program specifies a feedback area
in the CHNG or SETO DL/I call parameter list. If the feedback area
is present, information about the options list error is returned directly to the application.