Open Processing
When the IAM data set is opened for the file load, IAM reads the attributes, parameters and overrides that were specified when the file was defined, and checks for current overrides. Any IAM overrides provided for the file load will supersede the values specified when the file was defined. If there were any errors detected by the override processing, the file load will fail. This is done to prevent a data set from being improperly loaded with incorrect attributes, which can result in subsequent problems. Using that merged information set, all of the file attributes are validated and established. Conflicts and errors within the merged attribute set will cause the OPEN to fail with a return code of 8, and an appropriate error code. Because most of the errors will be caught during the define process, file attribute errors are very rare during the open process. If one does occur, there will be an error message in the Job Log indicating the reason for the error. After the Open process successfully completes, the program can begin writing records into the data set.