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.

Section 19<br />

SAR$ ATREAD<br />

19.1. ATREAD Function/PLUS Interface<br />

The SAR$ ATREAD function writes a symbolic image to the current output stream and<br />

reads a symbolic image from the current input stream.<br />

The SAR$ ATREAD procedures can be called directly from PLUS. All SAR$ data<br />

structure definitions and procedure calls are contained in definition elements and may be<br />

obtained with the PLUS COPY statement.<br />

19.1.1. ATREAD Packet Data Structure Description<br />

The SAR$ ATREAD function requires an ATREAD packet data structure for the<br />

SAR_INITIALIZE_ATREAD and SAR_ATREAD procedure calls.<br />

The type definition for this data structure is contained in the element SAR$ATRPKTD in<br />

the <strong>SYSLIB</strong> file (SYS$LIB$*<strong>SYSLIB</strong>) or SYS$*RLIB$. It may be obtained with the COPY<br />

statement. The identifier for the ATREAD packet data structure type is<br />

SAR_ATREAD_PACKET.<br />

The calling program must provide storage space for the ATREAD packet data structure,<br />

plus any necessary buffers and tables, since SAR$ does not have any D-bank storage.<br />

The length of the ATREAD packet is equal to the constant<br />

SAR_ATREAD_PACKET_WORD_LENGTH, defined in the element SAR$ATRPKTD<br />

(current length is 29 words). SAR_ATREAD_PACKET is defined as LOCATABLE.<br />

The calling program places information in the ATREAD packet data structure and passes<br />

the address of the data structure to SAR$ through the procedure calls.<br />

7833 1733–004 19–1

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

Saved successfully!

Ooh no, something went wrong!