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.

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

In this example, BSP$ adds an element to a program file. The following two buffers and<br />

one packet are required:<br />

• FCT is for the file control table<br />

• ELTTBL is for the program file element table<br />

• ADDPKT is for a packet that holds information about the element to be added<br />

The first call to BSP$ reads the file control table. The file control table must be read<br />

before any other calls are made to BSP$.<br />

The next call to BSP$ is to read the program file element table. This table must be read<br />

before elements are added, deleted or searched for.<br />

The BSP$ call to ETIA$ adds the element described in the add packet ADDPKT to the<br />

contents in the file TESTFILE. The element name is NEWPROGRAM with version name<br />

VERS-3. It is a symbolic element, cycle 0, with a maximum cycle limit of 5.<br />

ELTLEN is the sector length of the element. ELTADDR is the starting sector address of<br />

the element in the file TESTFILE. The calling program must write the actual text of the<br />

element to the file using the SDFO routine.<br />

When the element is added to the program file element table, the table must be written<br />

back to WPFET$. The next write location is updated by adding the element sector<br />

length to word 7 of the FCT. A call to WFTI$ writes the updated FTI back to the file.<br />

This completes updating of the file.<br />

5.3. LEPF Considerations<br />

This section contains additional information, limitations, restrictions, and considerations<br />

pertaining to LEPFs and their use.<br />

The following are general limitations and restrictions:<br />

• LEPFs are first supported by the BSP$ contained in <strong>SYSLIB</strong> level 76R1. LEPFs are<br />

not recognized as program files by any prior <strong>SYSLIB</strong> level.<br />

• The initial implementation of LEPFs is intended primarily for use by MAPPER, as a<br />

container for large MAPPER reports (symbolic elements) that have over 262,143<br />

sectors of element text.<br />

• Initially, only MAPPER, FURPUR, PCFP, and BSP$ support LEPFs.<br />

• Initially, LEPFs are not supported by the Exec, including the ER PFx$ interface and<br />

the command line interface (@ADD, @START, @XQT, and so on).<br />

• Initially, LEPFs cannot contain procedure elements (element type 1, subtype 035,<br />

and element types 2, 3, and 4), relocatable elements (element type 5), and<br />

executable elements (element type 6).<br />

• Calling programs that are not modified will not recognize LEPFs as program files.<br />

This includes programs that call the relocatable version of BSP$, even when they are<br />

re-collected with <strong>SYSLIB</strong> level 76R1 or higher.<br />

7833 1733–004 5–35

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

Saved successfully!

Ooh no, something went wrong!