RPG/400 Help

Positions 19-26 (To File Name)

Entry
Explanation
Blank
The array or table is not written at end of program.
Input or update file with data
File processed with the record address file named in positions 11 through 18.
Output or combined file
Output file to which an array or table is to be written, or the same file name (must be a combined table file) specified in positions 11 through 18 if the output array or table is to replace input in the same file. The file should be externally described as a physical file.

If a record address file is named in positions 11 through 18, the name of the input or update file that contains the data records to be processed must be entered in positions 19 through 26.

If an array or table is to be written, enter the file name of the output or combined file in positions 19 through 26. This file must also be named in the file description specifications. An array or table can be written to only one output device. Leave positions 19 through 26 blank if the array or table is not to be written.

If an array or table is assigned to an output file, it is automatically written if LR is on. The array or table is written after all other records are written in the format used when it was entered.

If an array or table is to be written to the same file from which it was read, the same file name must be entered in positions 11 through 18 and in positions 19 through 26. This file must be specified as a combined file (C in position 15) in the file description specifications.

Table "From and To File Name Entries" describes the possible entries.

From and To File Name Table

*----------------------------------------------------------------*
|          From and To File Name Entries                         |
*---------------*----------------*-------------------------------*
| TYPE OF FILE  | FROM FILE NAME | TO FILE NAME (POSITIONS       |
|               | (POSITIONS     | 19-26)                        |
|               | 11-18)         |                               |
*---------------*----------------*-------------------------------*
| Array or      | If an array or | If the array or table being   |
| table files   | table loaded   | defined is being written out  |
| loaded at     | at prerun time | after it is updated, enter    |
| prerun time   | is being       | the name of the output file   |
|               | defined (posi- | or the combined array file if |
|               | tions 27       | it is to be written to the    |
|               | through 57),   | same file that was assigned   |
|               | enter the name | to it in the file description |
|               | of the file    | specifications.(1)  If the    |
|               | that contains  | array or table is not being   |
|               | the array or   | written out, leave these      |
|               | table.(1)      | positions blank.              |
*---------------*----------------*-------------------------------*
| Arrays or     | Blank.         | Enter the name of the output  |
| tables loaded |                | file if the array or table is |
| at compile    |                | to be written out at the end  |
| time          |                | of the program.(1)            |
*---------------*----------------*-------------------------------*
| Arrays loaded | Blank.         | Blank.                        |
| by input or   |                |                               |
| calculation   |                |                               |
| specifica-    |                |                               |
| tions         |                |                               |
*---------------*----------------*-------------------------------*
| Record        | Enter the name | Enter the name of the file    |
| address file  | of the record  | that contains the data        |
|               | address        | records to be processed by    |
|               | file.(1)       | the record address file.(1)   |
*---------------*----------------*-------------------------------*
| (1)These entries must be left-adjusted.                        |
*----------------------------------------------------------------*


[ Top of Page | Previous Page | Next Page | Table of Contents ]