If the XCHGPMG parameter is used SBMITPJOB will call the specified program as an exit program whenever information is exchanged. This exit program can specify a response, which is sent back to ITP/Server.
The exit program must have the following interface (in CL format):
PGM PARM(&JOBID &KEY &VALUE &RESPONSE)
DCL VAR(&JOBID) TYPE(*CHAR) LEN( 32) /* Input */
DCL VAR(&KEY) TYPE(*CHAR) LEN( 64) /* Input */
DCL VAR(&VALUE) TYPE(*CHAR) LEN(1024) /* Input */
DCL VAR(&RESPONSE) TYPE(*CHAR) LEN(1024) /* Output */
ENDPGM