18.08.2013 Views

Programming Reference Manual - Public Support Login - Unisys

Programming Reference Manual - Public Support Login - Unisys

Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Acquiring Program File Information<br />

PACK_PF_TEXT_SIZE_TO_COPY<br />

Indicates the amount of mass storage (in words) that would be copied if this file<br />

were processed with the PACK_PF function. See C.1 for a description of how this<br />

value affects PACK_PF function performance. Has a value of zero if the calling<br />

program set GET_SUMMARY_INFO = FALSE.<br />

Data Type: unsigned integer, returned<br />

Notes: The following points apply to each item that returns the number of available<br />

entries in a table of contents:<br />

• For a standard program file, if a table is empty (current number of entries is zero), the<br />

value that PCFP returns for the number of available entries in the table is also zero<br />

even though in most cases entries can be added to the table.<br />

• For a standard program file, PCFP calculates the number of available entries by<br />

assuming that all tables that are currently empty remain empty. If an entry is added<br />

later to a table that is currently empty, the number of entries available in other tables<br />

might be significantly reduced.<br />

• For a large program file, all tables have fixed sizes and a fixed maximum number of<br />

entries. PCFP calculates the number of available entries by subtracting from the<br />

fixed maximum the number of entries currently in the table.<br />

• Some tables (for example, the COBOL procedure table) have variable-length entries.<br />

PCFP calculates the number of available entries by assuming entries of maximum<br />

size.<br />

6.1.3. File Identifier<br />

The file identifier parameter names the file from which information is to be acquired.<br />

The named file must be a program file on sector-addressable mass storage for which the<br />

calling program has read privileges. See 2.3 for a description of this parameter.<br />

6.1.4. Work Area<br />

The ACQ_BASIC_PF_INFO function operates with any work area greater than or equal to<br />

the minimum size of 1,000 words. When the calling program sets<br />

GET_SUMMARY_INFO = FALSE, this function never uses a work area larger than this<br />

minimum. When the calling program sets GET_SUMMARY_INFO = TRUE, the function<br />

works more efficiently with larger work area sizes. The actual memory usable by the<br />

function varies with the size of the program file on which it operates. This function can<br />

make effective use of about 200 + 10*N words, where N is the number of elements<br />

(deleted and undeleted) in the program file. Thus, a work area size larger than the<br />

minimum is used with a program file containing more than 80 elements. The maximum<br />

size work area is used for program files containing about 2,000 or more elements.<br />

6–10 7830 9796–013

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

Saved successfully!

Ooh no, something went wrong!