AppendCPCommandOutput (Stringlist function)

From m204wiki
Revision as of 12:38, 21 September 2011 by Alex (talk | contribs) (→‎Syntax terms)
Jump to navigation Jump to search

Add output from CP command to Stringlist (Stringlist class)

[Introduced in Sirius Mods 7.9]


This callable method invokes a CP command in the Online's virtual machine and adds the output from that command to a Stringlist. The AppendCPCommand method accepts one or more arguments and returns a numeric result. Since CP commands are only available in a CMS environment, this method is useless when running under z/OS (MVS) or VSE and will result in request cancellation if invoked under those operating systems.

Syntax

[%rc =] sl:AppendCPCommandOutput( command, [BufferSize= number])

Syntax terms

%rcThe return code from the issued CP command.
sl Stringlist to receive output from the CP command.
command The CP command to be issued.
BufferSize The size of the virtual storage buffer to hold the result of the CP command. AppendCpCommandOutput uses Diagnose X'08' to issue the CP command and Diagnose X'08' requires that the output from the command go to a single contiguous output buffer. This buffer is only used as a staging area to hold the command output until it is moved to the output stringlist.

Usage notes

Examples

See also