Spooled output considerations

 

The REXEC server overrides the default printer file (*PRTF) to capture spooled output. Any resulting spooled files are tagged with the user data field set to REXECSVR.

After the REXEC server runs the specified command, each spooled file with this user data tag is retrieved, returned to the client, and then deleted. If more than one spooled file is created, the files are processed in the order created, as determined by the spooled file number.

If the command or program run through REXEC performs its own print file override and changes the user data, the REXEC server is unable to capture and return the resulting spooled data.

These considerations apply only to i5/OS® CL commands.

 

Parent topic:

REXEC