18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SAR$ COM<br />

20.1.3. SAR$ COM Procedure Called from PLUS<br />

The SAR$ COM function writes a symbolic image to the operator's console and<br />

optionally reads a symbolic image from the operator's console.<br />

The calling procedure for the COM function is SAR_COM.<br />

The procedure declaration for SAR_COM is contained in the element SAR$COM$DG, in<br />

the <strong>SYSLIB</strong> file (SYS$LIB$*<strong>SYSLIB</strong>) or SYS$*RLIB$. This element is obtained with the<br />

COPY statement. The module containing the SAR_COM procedure uses the PLSSTACK<br />

and is compiled with the G option using the IBJ$ calling sequence.<br />

SAR_COM Procedure Call<br />

The SAR_COM procedure constructs an image from the output text and output<br />

attributes, writes the image to the operator's console, reads an image from the<br />

operator's console, and returns the character text and attributes of the image to the<br />

caller.<br />

Initial Conditions<br />

The calling program sets the following parameters in the packet to appropriate values<br />

before calling SAR_COM:<br />

• Required parameters (described in 20.1.1.1)<br />

PACKET_VERSION<br />

OUTPUT_TEXT_BUFFER_ADDRESS<br />

OUTPUT_TEXT_BUFFER_BYTE_LENGTH<br />

INPUT_TEXT_BUFFER_ADDRESS<br />

INPUT_TEXT_BUFFER_BYTE_LENGTH<br />

• Optional parameters (described in 20.1.1.2)<br />

OUTPUT_CHARACTER_TYPE<br />

INPUT_REQUEST_TYPE<br />

IMAGE_BUFFER_ADDRESS<br />

IMAGE_BUFFER_WORD_LENGTH<br />

OUTPUT_ATTRIBUTE_TABLE_ADDRESS<br />

OUTPUT_ATTRIBUTE_TABLE_WORD_LENGTH<br />

INPUT_ATTRIBUTE_TABLE_ADDRESS<br />

INPUT_ATTRIBUTE_TABLE_WORD_LENGTH<br />

INPUT_SELECT_LIST_ADDRESS<br />

INPUT_SELECT_LIST_BYTE_LENGTH<br />

CONSOLE_CLASS<br />

CONTROL_BITS<br />

ADDITIONAL_CONTROL_BITS<br />

RUN_ID_FOR_LOGGING<br />

ROUTING_CONSOLE<br />

ROUTING_INFORMATION<br />

20–8 7833 1733–004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!