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.

BSP$-Program File Basic Service Package<br />

BSP$ is available in both the <strong>SYSLIB</strong> common bank <strong>SYSLIB</strong>$1 and as a relocatable<br />

element in the <strong>SYSLIB</strong> installation file (SYS$LIB$*<strong>SYSLIB</strong>). The relocatable and common<br />

bank entry points to BSP$ are listed in Appendix E.<br />

5.1. BSP$ Functions<br />

The following descriptions of the BSP$ functions include three calling methods:<br />

relocatable, common bank, and Auto Switch. Entry points to the common bank BSP$<br />

are the same as the relocatble entry points except they are prefixed with the letters CB.<br />

Section 3 describes the <strong>SYSLIB</strong> access methods.<br />

Some BSP$ functions require that the address of a packet be passed as a parameter.<br />

In those cases, a diagram shows the format of the packet. If a field name is italicized,<br />

the caller must provide a value for the field. All element, version, and procedure names<br />

are 12 Fieldata characters, left-justified and space-filled. DF is the delete flag and is set<br />

to one for deleted items. CI is the continuation indicator and is set to one for COBOL<br />

procedure names longer than 12 characters.<br />

5.1.1. Read FTI<br />

The FTI must be read into the data area provided by the caller for the FCT before any<br />

other operations can be performed. If any add, delete, or change operations are<br />

completed, then a WFTI$ call must be done to write the FTI back to the file.<br />

Two functions are available to read the FTI. The RFTI$ function can be used to read an<br />

existing PF or LPF and to initialize an empty file as a PF. The RFTI$$ function, described<br />

later in this section, can be used to read an existing PF, LPF, or LEPF and to initialize an<br />

empty file as a PF, LPF, or LEPF.<br />

The following describes the RFTI$ function:<br />

Calling Sequence<br />

Auto Switch<br />

L,U A0,address-of-FCT<br />

LMJ X11,CBRFTI$-1<br />

error return<br />

normal return<br />

Common Bank or<br />

Relocatable<br />

L,U A0,address-of-FCT<br />

I$BJ X11,CBRFTI$<br />

error return<br />

normal return<br />

Relocatable<br />

L,U A0,address-of-FCT<br />

LMJ X11,RFTI$<br />

error return<br />

normal return<br />

7833 1733–004 5–3

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

Saved successfully!

Ooh no, something went wrong!