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.

SDFI, SDFO–System Data Format I/O Routines<br />

The SDFI and SDFO routines are available as relocatable elements and also in the<br />

<strong>SYSLIB</strong> common banks. SDFI is in the common bank absolute <strong>SYSLIB</strong>$3, and SDFO is<br />

in the common bank absolute <strong>SYSLIB</strong>$4. Both routines are reentrant. The relocatable<br />

and common bank entry points for SDFI and SDFO are listed in Appendix E.<br />

The following compatibility considerations apply to FURPUR and Processor Common<br />

Input/Output System (PCIOS):<br />

• SDFI and SDFO are fully compatible with FURPUR level 28R3 and higher levels.<br />

• SDFI and SDFO are compatible with PCIOS levels 4R1 and 4R1A, except for the<br />

handling of multireel tape files:<br />

− When SDFI reads multireel tape files created by PCIOS, I/O error 01 (unlabeled<br />

tape) or TLBL$ error 013 (labeled tape) occurs.<br />

− When PCIOS reads multireel tape files created by SDFO, unlabeled tapes are<br />

read correctly, but labeled tapes encounter I/O error 01.<br />

• SDFI returns segmented PCIOS records one segment at a time. The caller must<br />

examine the segment flag in the PCIOS data record control word to determine how<br />

the data record is segmented.<br />

A description of each routine and its corresponding packet is in the following<br />

subsections.<br />

For details on system data format, see the Data Structures <strong>Programming</strong> <strong>Reference</strong><br />

<strong>Manual</strong>.<br />

21.1. SDFI–System Data Format Input Routine<br />

The SDFI routine returns one SDF image at a time from an SDF file or element. SDFI<br />

has the following functions and entry points:<br />

• Open SDFI (SDFIO$, SDFIOA$)<br />

• Read an image (SDFI$, SDFINT$)<br />

• Close SDFI (SDFIC$)<br />

The calling program must open SDFI before reading images from the file or element and<br />

close SDFI after all images are read.<br />

The packet (or FCT) for SDFI is described in 21.1.1. The open, read, and close functions<br />

of SDFI are described in 21.1.2.1, 21.1.2.2, and 21.1.2.3, respectively.<br />

21.1.1. Packet<br />

The calling program must provide an 11-word packet for SDFI. The SDFI packet format<br />

is described in Figure 21–1. The packet may be generated with the S$DFCT procedure<br />

described in 21.1.1.2.<br />

21–2 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!