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.

Example of Using RFTI$$<br />

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

The following code fragment illustrates an RFTI$$ calling sequence:<br />

L,U A0,FCT . Address of the File Control Table<br />

L A1,(1,56) . BSP$ interface level 1, 56 word FCT<br />

L,U A2,0100++4 . Initialize empty file to allow large<br />

. element text and as a large program<br />

. file (large LEPF)<br />

I$BJ X11,CBRFTI$$ . Call common banked BSP$<br />

J BSPERR . Error on FTI read/initialize<br />

. Proceed on normal return<br />

5.1.2. Read Program File Table<br />

This table must be read into the calling buffer before any operations are performed on<br />

the table. If any add delete, or change operations were completed, then the table must<br />

be written back to the file with one of the WPFxxT$ calls.<br />

The BSP$ entry points for reading program file tables are<br />

(CB)RPFET$ Read Program File Element Table<br />

(CB)RPFAPT$ Read Program File Assembler Procedure Table<br />

(CB)RPFCPT$ Read Program File COBOL Procedure Table<br />

(CB)RPFEPT$ Read Program File FORTRAN/PLUS Procedure Table<br />

(CB)RPFEPT$ Read Program File Relocatable Element Entry Point Table<br />

Calling Sequence<br />

Auto Switch Common Bank or<br />

Relocatable<br />

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

L A1,(buffer, length)<br />

LMJ X11,CBRPFxxT$-1<br />

error return<br />

normal return<br />

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

L A1,(buffer, length)<br />

I$BJ X11,CBRPFxxT$<br />

error return<br />

normal return<br />

Relocatable<br />

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

L,U A1,(buffer, length)<br />

LMJ X11,RPFxxT$<br />

error return<br />

normal return<br />

7833 1733–004 5–9

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

Saved successfully!

Ooh no, something went wrong!