Defining the File Usage in Free-Form
Defining the File Usage in Free-Form
Defining the File Usage in Free-Form
Table 1. USAGE keyword equivalents of Fixed-form Type, Designation and Addition entries
| Fixed-form entries | Description | Equivalent USAGE keyword | Notes on the free-form syntax | ||
|---|---|---|---|---|---|
| File Type | File Designation | File Addition | |||
| I | F | Input Full-procedural | USAGE(*INPUT) | USAGE(*INPUT) is the default for DISK, SEQ, SPECIAL | |
| I | F | A | Input Full-procedural with file addition | USAGE(*INPUT : *OUTPUT) | |
| U | F | Update Full-procedural | USAGE(*UPDATE : *DELETE) | In fixed form, Update implies that the file is also Delete-capable. In free form, *DELETE must be explicitly specified for the file to be Delete-capable. If you do not want the file to be Delete-capable, omit *DELETE. | |
| U | F | A | Update Full-procedural with file addition | USAGE(*UPDATE : *DELETE : *OUTPUT) | |
| O | Output | USAGE(*OUTPUT) | USAGE(*OUTPUT) is the default for PRINTER | ||
| O | A | Output with file addition | Not supported in free-form | ||
| C | F | Combined Full-procedural | USAGE(*INPUT : *OUTPUT) | USAGE(*INPUT : *OUTPUT) is the default for WORKSTN | |
| I or U | P | Input or Update Primary file | Not supported in free-form | ||
| I or U | S | Input or Update Secondary file | Not supported in free-form | ||
| I or C® | T | Input or Combined Table file | Not supported in free-form |