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.

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

23.2.4. GETSR$–Get Symbolic Image in Fieldata<br />

GETSR$ obtains a symbolic input image in Fieldata and returns it to the calling program.<br />

If symbolic output is specified, SIR$ writes the image to the output file or element.<br />

Calling Sequence<br />

L A0,(buffer-length,buffer-addr)<br />

LMJ X11,GETSR$<br />

error return<br />

end-of-file return<br />

normal return<br />

where:<br />

buffer-length<br />

The length in words of the buffer into which the symbolic input image is read.<br />

buffer-addr<br />

The address of the buffer into which the symbolic input image is read.<br />

Returns<br />

The GETSR$ entry point is called to obtain the next input image from the source input or<br />

the runstream and to pass the image to the calling program in Fieldata. Input images in<br />

ASCII and ASCII-like CCSs are translated to Fieldata and passed to the calling program.<br />

Input images in Fieldata are passed without change to the calling program. Input images<br />

in the 22 "other" CCSs are not passed to the calling program, but instead result in an<br />

error return.<br />

If the buffer is longer than the Fieldata image, the buffer is filled with Fieldata spaces to<br />

the end. If the buffer is shorter that the image, only buffer-length words are returned;<br />

the remainder of the image is lost. SIR$ reads images up to 63 words and can be<br />

configured to read images up to 2,047 words.<br />

If symbolic output is specified, SIR$ writes the image. Note that even though the image<br />

is passed to the calling program in Fieldata, this does not affect the CCS of the image<br />

when it is written to the source output. As previously described, the P and Q options<br />

determine the CCS of the output image. For example, an ASCII-like ISO_8859_5<br />

(decimal CCS 39) image is translated to Fieldata when passed to the calling program, but<br />

the image would still be written to the source output as an ISO_8859_5 image if the Q<br />

option or both the P and the Q options are specified.<br />

If SIR$ takes an error return, the information returned is the same as described for<br />

GETAS$ in 23.2.3.<br />

SIR$ takes the end-of-file return when there are no more symbolic images to read in<br />

either the source input or the runstream.<br />

The following information is returned to the calling program in registers A0 through A5<br />

when the normal return is taken:<br />

23–16 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!