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.

SAR$–Symbolic Access Routines<br />

16.1. File Information Packet<br />

The file information packet (FIP) is used to pass information to the Symbolic Access<br />

Routines (SAR$) for input and output to SDF files, SDF elements, and alternate symbiont<br />

files. The SAR$ calling program must supply the D-bank storage space for the FIP.<br />

The file information packet is not required for reading from or writing to the standard<br />

symbiont (READ$ and PRINT$) files.<br />

All required information is placed in the FIP, and the address of the FIP is placed in the<br />

SAR$ READ or WRITE packets.<br />

16.1.1. PLUS Interface<br />

The type definition for the FIP is contained in the PLUS definition element<br />

SAR$FILEPKTD in the <strong>SYSLIB</strong> file SYS$LIB$*<strong>SYSLIB</strong> and may be obtained with the<br />

PLUS COPY statement “COPY ('SAR$FILEPKTD');”. The identifier of the FIP data<br />

structure type is SAR_FILE_INFO_PACKET. The length of the FIP is equal to the<br />

constant SAR_FILE_INFO_PACKET_WORD_LENGTH defined in the element<br />

SAR$FILEPKTD (current length is nine words). SAR_FILE_INFO_PACKET is defined as<br />

LOCATABLE.<br />

16.1.1.1. FIP Field Descriptions<br />

The following fields of the FIP are set by the calling program:<br />

PACKET_VERSION<br />

PLUS Attribute: 6-bit integer<br />

The FIP data structure version. The current version is equal to the constant<br />

SAR_FILE_INFO_PACKET_CURRENT_VERSION defined in the element<br />

SAR$FILEPKTD.<br />

ACCESS_TYPE<br />

PLUS Attribute: 6-bit status<br />

The type of input being accessed<br />

S'SDF_file' Input is from an SDF file.<br />

S'SDF_element' Input is from an SDF element.<br />

S'PROC' Input is from a PLUS, FORTRAN, or COBOL PROC.<br />

S'Alternate_symbiont' Input is from an alternate READ file.<br />

This field is set for input only; it is omitted for output. If input is from the runstream<br />

(READ$ file), the FIP address in the READ packet is set to NULL.<br />

16–2 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!