Problem:
The compiler in MFE 3.1 reports the error "NOSUSPEND is not a valid option for write". For Example:
Compiling CICSESDS.cbl...
COBEC1210E NOSUSPEND is not a valid option for WRITE : C:\\MF\\Tutorials\\IBMexamples\\CICSESDS\\CICSESDS.cbl(73,22)
Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 8
Build finished with 1 errors, 0 warnings, and 0 notices.
Completed in 0 seconds
While the NOSUSPEND option isn't supported for 'write', it is required that this statement can be compiled successfully (i.e. by treating the 'NOSUSPEND' option as a comment).
The CICS preprocessor has the 'OPTION' option which can be used to specify how to handle unsupported options of CICS functions:
OPTION=ABEND Requests that unsupported functions result in an abend at run time.
OPTION=NOOP Requests that unsupported functions are treated as comments (that is, ignored by the preprocessor).
OPTION=IGNORE Requests that unsupported functions are ignored at run time.
(The default is that the CICS preprocessor treats unsupported CICS options as Compiler errors. )
However the TREAT AS COMMENT option (NOOP) of the CICS pre-processor doesn't work in this release - it still gives this as an error and the compilation abends.
Resolution:
However it is possible to get round this problem (i.e. for releases prior to 3.1 WS11) as follows:
1. Add the following to the CICS Pre-processor:
/CICSECM(SEVERITY=1210W)
This will ensure that all 1210 messages (which is what the NOSUSPEND option is generating) will be interpretted as a warning rather than an error and will thus allow compilation to continue.
2. Specify the following pre-complier option to allow undefined parameters during the compile:
cicsecm(undef=allow)
This will ensure that any and all undefined parameters will be allowed (and not cause compiler errors).
#EnterpriseDeveloper
#MFE
#option
#MFDS
#NOSUSPEND