VERIFIED SOLUTION i

Resolve COBOL File Status 39 error on Mailstream Plus

Product affected: MailStream Plus™
Operating System: z/OS (or MVS)

Issue

COBOL File Status 39 error

Cause

COBOL File Status 39 means:
----------------------------------
A conflict has been detected between the fixed file attributes and the attributes specified for the file in the program. 
This is usually caused by a conflict with record-length, key-length, key-position or file organization.

Other possible causes are:
1. Alternate indexes are incorrectly defined.
2. The Record Format (RECFM) mode is Variable or Fixed and/or not defined the same as when the file was created..
-----------------------------------

Resolution

UPDATED: March 13, 2019
This error can happen when the physical Name-Address Input file for MSSTIN does not match the settings on the FILEDF MSSTIN parameter (if settings are given), or the settings on the DD MSSTIN (if the settings are given).

The error also commonly occurs if the DEFINE CLUSTER for the MSWKWK work file does not match the required settings, or if the DD settings for the MSWKNRC file are not correct.  (For the current required settings for these files, you can check the IVPFILE test job for the version of MailStream Plus being used.)