FILEPI Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
After the KEYIN routine, INFILE is locked from access by other PL/B programs for a maximum of 8 instructions (not including unconditional GOTO, CALL or RETURN instructions), unless previously terminated by a FILEPI 0, PI 0, DISPLAY, KEYIN or PRINT instruction.
Example 2:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This example begins by creating a FILELIST containing two ISAM files. During program execution, both files are opened and subsequently both are locked by the single FILEPI statement.
![]() |