Record %1 of file %2 is GLOBAL, but file %2 is not.
30
Cause . . . . . : For a record referenced in a WRITE, REWRITE, or RELEASE statement, either the file to which it belongs must be defined in the same program in which the statement occurs, or the file must be GLOBAL.
Recovery . . . : Define file %2 as GLOBAL, or move the definition of file %2 to the same program in which the WRITE, REWRITE, or RELEASE statement occurs.