Listed here are the considerations for opening a database file that is shared in the same job or activation group.
For example, PGMA is the first program to open FILE1 in the job or activation group and PGMA only needs to read the file. However, PGMA calls PGMB, which will delete records from the same shared file. Because PGMB will delete records from the shared file, PGMA will have to open the file as if it, PGMA, is also going to delete records. You can accomplish this by using the correct specifications in the high-level language. (To accomplish this in some high-level languages, you might have to use file operation statements that are never run. See your high-level language topic collection for more details.) You can also specify the file processing option on the OPTION parameter on the OPNDBF and OPNQRYF commands.