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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SIR$–Symbolic Input/Output Routine<br />

Control Records to Pass<br />

On entry, bits 4 through 35 of A4 specify which SDF control records SIR$ should not<br />

pass to the calling program. If bit n is set, then the control record type 0103-n is not<br />

passed to the calling program. The control record is still written to the source output by<br />

SIR$.<br />

Example<br />

If A4 equals 013 on a call to INISR$, bits 32, 34, and 35 are set, or bits 040, 042, and 043<br />

in octal. This initializes SIR$ so that control record types 0103-040 = 043, 0103-042<br />

= 041, and 0103-043 = 040 are not passed to the calling program.<br />

Source Output Control<br />

If bit 0 of A4 is set, SIR$ checks for the following conditions:<br />

• The output is to a scratch file and not to a source output element (PARTBL+16=0).<br />

• The input is not from tape.<br />

• There are no changes to the symbolic input.<br />

If these conditions exist, SIR$ does not write to the processor's scratch file on the first<br />

pass. On subsequent passes, SIR$ rereads the input element. If these conditions are<br />

met, SIR$ performs approximately 75-percent fewer I/Os on the first pass than if SIR$<br />

were called with OPNSR$.<br />

Example<br />

@MASM,S non-tape-si-element,ro-element<br />

@EOF<br />

In this example, SIR$ does not send unused output to the processor scratch file when<br />

the Assembler sets register A4 to negative and calls INISR$ instead of OPNSR$.<br />

Return CCS Identifier<br />

Fieldata, ASCII, and ASCII-like symbolic images can be passed to the calling program in<br />

Fieldata by using the GETSR$ entry point, in ASCII by using the GETAS$ entry point, or<br />

without translation by using the GETNM$ entry point.<br />

If bit 1 of A4 is set, SIR$ stores the CCS identifier in S6 of A0 for all images passed to<br />

the calling program in ASCII (GETAS$ and GETNM$ entry points). This initialization<br />

option allows the caller to identify the actual CCS associated with each image passed in<br />

ASCII, which may be necessary for proper processing of images in different ASCII-like<br />

CCSs.<br />

If bit 1 of A4 is clear or if the OPNSR$ initialization entry point is called, SIR$ stores 01 in<br />

S6 of A0 for all images passed to the calling program in ASCII (GETAS$ and GETNM$<br />

entry points) and 00 in S6 of A0 for all images passed to the calling program in Fieldata<br />

(GETSR$ and GETNM$ entry points).<br />

23–12 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!