Position 66 indicates whether records are to be added to a DISK file.
*----------------------------------------------------------------* | Processing Functions for Files | *-------------------------*------------*------------*------------* | | FILE | FILE | | | | DESCRIPTION| DESCRIPTION| OUTPUT | | | SPECIFICA- | SPECIFICA- | SPECIFICA- | | FUNCTION | TIONS | TIONS | TIONS | | | POSITION | POSITION | POSITIONS | | | 15 | 66 | 16-18 | *-------------------------*------------*------------*------------* | Create new file(1) | O | Blank | Blank | | | | | | | or | | | | | | | | | | Add records to existing | O | A | ADD | | file | | | | *-------------------------*------------*------------*------------* | Process file | I | Blank | Blank | *-------------------------*------------*------------*------------* | Process file and add | I | A | ADD | | records to the existing | | | | | file | | | | *-------------------------*------------*------------*------------* | Process file and update | U | Blank | Blank | | the records (update or | | | | | delete) | | | | *-------------------------*------------*------------*------------* | Process file and add | U | A | ADD | | new records to an | | | | | existing file | | | | *-------------------------*------------*------------*------------* | Process file and delete | U | Blank | DEL | | an existing record from | | | | | the file | | | | *-------------------------*------------*------------*------------* | (1)Within RPG, the term create a new file means to add records | | to a newly created file. Thus, the first two entries in this | | table perform the identical function. Both are listed to show | | that there are two ways to specify that function. | *----------------------------------------------------------------*
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.