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.

dispflg<br />

A flag to display a table of the READ packet EQUFs. If it is set to ‘D’, the field<br />

names are displayed; otherwise the field names are not displayed.<br />

Example<br />

$ASCII<br />

$INCLUDE ‘MAXR$’<br />

S$ARRPDEF X9,B2,’D’<br />

SAR$ READ<br />

The PROC call S$ARRPDEF of this example generates EQUFs using registers X9 and B2<br />

and displays a description of each packet field.<br />

17.2.2. Buffers and Tables for MASM READ Procedures<br />

All buffers and tables must be provided by the calling program. The recommended<br />

lengths for the buffers and tables are equated to labels in the S$ARRPDEF PROC.<br />

These lengths and labels are listed in Table 17–5. These definitions simplify the creation<br />

of required buffers and tables for the calling program.<br />

Table 17–5. SAR$: MASM READ Buffer and Table Lengths<br />

Label Value<br />

SR$INPBUFDL (Input buffer word length) 448<br />

SR$IMGBUFDL (Image buffer word length) 63<br />

SR$TEXBUFDL (Text buffer byte length) 132<br />

SR$ATTRIBDL (Attribute table word length) 40<br />

SR$SELLSTDL (Select list byte length) 4<br />

17.2.3. READ Procedures Called from MASM<br />

The MASM procedures for the READ function are<br />

• S$AROPENI (open input)<br />

• S$ARREAD (read)<br />

• S$ARCLOSI (close input)<br />

The calling sequences for these procedures are generated by MASM PROCs, contained<br />

in the <strong>SYSLIB</strong> file (SYS$LIB$*<strong>SYSLIB</strong>) or SYS$*RLIB$.<br />

7833 1733–004 17–27

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

Saved successfully!

Ooh no, something went wrong!