IBM AS/400 Manuel D’Utilisation
Valid WORKSTN File Operations
¹
No indicators are passed to or from the program.
¹
No function key indicators are defined.
¹
The record is written to the display beginning in position 2 of the first available
line.
line.
Input File
For an input file, the input record, which is treated by the OS/400 device support as
a single input field, is initialized to blanks when the file is opened. The cursor is
positioned at the beginning of the field, which is position 2 on the display.
a single input field, is initialized to blanks when the file is opened. The cursor is
positioned at the beginning of the field, which is position 2 on the display.
Output File
For an output file, the OS/400 device support treats the output record as a string of
characters to be sent to the display. Each output record is written as the next
sequential record in the file; that is, each record displayed overlays the previous
record displayed.
characters to be sent to the display. Each output record is written as the next
sequential record in the file; that is, each record displayed overlays the previous
record displayed.
Combined File
For a combined file, the record, which is treated by the OS/400 device support as a
single field, appears on the screen and is both the output record and the input
record. Device support initializes the input record to blanks, and the cursor is
placed in position 2.
single field, appears on the screen and is both the output record and the input
record. Device support initializes the input record to blanks, and the cursor is
placed in position 2.
For more information on program-described-display-device files, see the
Data Man-
agement manual.
Valid WORKSTN File Operations
Table 28 shows the valid file operation codes for a WORKSTN file.
The following further explains the EXFMT, READ, and WRITE operation codes
when used to process a WORKSTN file.
when used to process a WORKSTN file.
Table 28. Valid File Operation Codes for a WORKSTN File
File Description
Specifications
Positions
Calculation Specifications Positions
17
18
26-35
I
P/S
CLOSE, ACQ, REL, NEXT, POST, FORCE
I
P/S
WRITE
1
, CLOSE, ACQ, REL, NEXT, POST, FORCE
I
F
READ, OPEN, CLOSE, ACQ, REL, NEXT, POST
C
F
READ, WRITE
1
, EXFMT
2
, OPEN, CLOSE, ACQ, REL, NEXT,
POST, UPDATE
3
, CHAIN
3
, READC
3
O
Blank
WRITE
1
, OPEN, CLOSE, ACQ, REL, POST
Notes:
1. The
WRITE
operation is not valid for a program-described file used with a format
name.
2. If the
EXFMT
operation is used, the file must be externally described (an
E
in position
19 of the file description specifications).
3. For subfile record formats, the
UPDATE
,
CHAIN
, and
READC
operations are also valid.
Chapter 18. Using WORKSTN Files
341