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.

PREPRM, PREPRO, PREPF$, and POSTPR$<br />

The information pertaining to the requested field is transferred from the INFOR table to<br />

the 13-word data area specified by j. FLDGET assigns the files on the processor call line<br />

if necessary. If elements are designated for input, then FLDGET verifies the existence of<br />

the element. An internal file name of the form "Fxxyy$" is attached to each file, where xx<br />

is the field type and yy is the field number. TPF$ is the default file.<br />

The processor can request either a file or an element by adding 070 to the element type.<br />

In other words, 077 in field m indicates an omnibus element or a file. The request for an<br />

element has precedence over a request for a file.<br />

The following describes how FLDGET uses the control bits of parameter n in register A0.<br />

When bit 11 of parameter n is set (in other words, field is for output), FLDGET:<br />

• Assigns file exclusively<br />

• Does not allow tape files<br />

• Stores the element name, version, and type in the 13-word data area<br />

When bit 11 of parameter n is not set (in other words, field is for input), FLDGET<br />

• Allows tape files (depending on bit 10 of parameter n)<br />

• Stores the equipment code in S4 of the first word of the 13-word data area<br />

• Does an ER PFS$ on the supplied information<br />

• Checks element cycling; relative cycling is allowed<br />

When bit 9 of parameter n is set, error message printing is suppressed and the first<br />

word of the 13-word data area is set to negative if the specified field cannot be found.<br />

All other error messages are printed.<br />

14.2. PREPF$–Preprocessor Routine<br />

PREPF$ generates the source input and source output fields of PARTBL (see<br />

Figure 14–1). PREPF$ also performs dynamic assigns of source input and output files if<br />

they are not already assigned. This routine is intended for processors that use files<br />

rather than elements. The input or output file may be a tape file, a temporary file, or a<br />

cataloged file.<br />

PREPF$ is for processors that require two fields on the processor call statement and use<br />

files instead of elements. The files can be tape files, temporary files, or cataloged files.<br />

The processor calling PREPF$ can have a maximum of 63 fields, but PREPF$ will only<br />

process the first two fields. The two fields are processed as the source input file and/or<br />

the source output file depending on the option field on the processor call statement.<br />

PREPF$ performs dynamic assigns of the files if they are not aleady assigned, and<br />

attaches internal file names as follows:<br />

$SI is attached to the source input file.<br />

$SO is attached to the source output file.<br />

14–12 7833 1733–004

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

Saved successfully!

Ooh no, something went wrong!