IBM AS/400 manual Valid WORKSTN File Operations, Input File, Output File, Combined File

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 365
Image 365
Input File

 

 

 

 

 

 

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

 

line.

 

 

 

 

 

 

 

 

 

 

 

 

Input File

 

 

 

 

 

 

 

 

 

 

 

 

For

an

input

file,

the input

record, which

is treated by the

OS/400

a single input field, is initialized

to blanks when the file is

opene

positioned at

the

beginning

of the

field,

which

is

position

2

on th

Output File

For an output file, the OS/400 device support treats the output reco characters to be sent to the display. Each output record is writt sequential record in the file; that is, each record displayed over record displayed.

Combined File

For a combined file, the record, which is treated by the OS/400 d single field, appears on the screen and is both the output record record. Device support initializes the input record to blanks, and t placed in position 2.

For more information on program-described-display-device Datafiles,Man-see the agement manual.

Valid WORKSTN File Operations

Table 28 shows the valid file operation codes for a WORKSTN file.

Table 28. Valid File Operation Codes for a WORKSTN File

File

Description

 

 

 

Calculation

Specifications

Positions

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,

CHAIN3,

READC 3

 

 

O

 

Blank

WRITE 1,

OPEN,

CLOSE,

ACQ,

REL,

POST

 

Notes:

1.TheWRITE operation is not valid for a program-described file used with name.

2.

If EXFMTthe operation

is used,

the

file must be externallyE in positiondescribed (a

19

of the

file description

specifications).

3.

For

subfile

record

formats,UPDATE CHAINthe,

andREADC operations are also valid.

The following further explains the EXFMT, READ, and WRITE operation code when used to process a WORKSTN file.

Chapter 18. Using WORKSTN Files341

Page 365
Image 365
IBM AS/400 manual Valid WORKSTN File Operations, Input File, Output File, Combined File