Work File Definition
Field | Description |
---|---|
Product Line | The name of the product line the work file is defined for. |
System Code | The system code of the program that the work file is associated with. If you leave this field and the Program Code field blank, you can select work files that are defined for use with copybooks that are referenced by multiple programs. |
Program Code | The program that the work file is associated with. If you leave this field and the System Code field blank, you can select work files that are defined for use with copybooks that are referenced by multiple programs. |
File Name | The internal work file name that is to be used to access the file in a 4GL program. The file is not stored on disk with this name; see the Value/WsFld Id field description for an explanation of external names for work file storage. |
Prefix |
The three-character prefix for the fields in the work file. This is the prefix used when using the work file fields in a program. For example, if the prefix is WK1 and a field is COMPANY, the field is WK1-COMPANY in a 4GL (COBOL) program, and WWK1CMPNY in an RPG program. (In RPG code, CMPNY is a generated abbreviation for the 4GL element name COMPANY. If the prefix has only two characters, an @ sign is added to make the prefix have three characters.) |
File Record |
Yes indicates that the work file stores the entire record in one field. No indicates that the work file record is to be broken into separate fields. |
Sort | If Yes, the work file is used for sorting records during processing. |
File Media |
Printer, Sequential, Index Sequential, Random, External Sequential, Tape, or CSV. Printer, Tape, and CSV files are stored as stream files in the IFS in ASCII format. Sequential, Index Sequential, Random, or External Sequential files are stored in physical file members. For more information, see nsm1546296022798.html##L37051091651496. |
Value/WsFld Id |
If this field has no value, then the location of the work file is: /EnvironmentDirectory/law/print/UserName/JobName/StepNbr/JobNbr If Value Id is marked and this field contains a value, then the location of the work file is: /EnvironmentDirectory/law/DataArea/work/ValueId/ValueId For example: /ENV90/law/lawapp9/work/APCHECKS/APCHECKS Note: If the work file is a Sequential, Index Sequential, Random,
or External Sequential file, this location is for a symbolic link
that points to a physical file member
If WsFld Id is marked and contains a field name, then the program sets the location. If the program places a file name in the field, then the location is: /EnvironmentDirectory/law/print/UserName/JobName/StepNbr/JobNbr/WorkDir Note: If the program places a path
and file name in the field, then the location is that path and file
name. No checking is done to ensure the path exists, and a program
error occurs if it does not.
|
File Status | A name or path used to create a file that stores the status of the work file (whether it is open or closed). |