PFILE Examples
Example 1:
|
|
|
PRTFILE may be used for print spooling.
Example 2:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PTRPFILE is a Pointer Variable that contains the address of another PFILE variable at execution time. This assignment is usually accomplished via the parameterized CALL instruction. Once initialized, PTRPFILE may be used as any other PFILE variable. It takes on all the attributes of the pointed to PFILE variable.
Example 3:
|
|
|
|
This instruction defines a global print file. It is kept open during the CHAIN instruction.
Example 4:
|
|
|
|
This instruction defines a global PFILE whose attributes are undefined. Prior to opening, it must be defined by performing a LOADMOD instruction or a CALL instruction of a separately compiled routine that defines the file with a '%' operator.
![]() |