This article explains the COBOL DISPLAY verb in CICS applications.
Problem:
Using the DISPLAY verb in a CICS program does not produce any output. Can Enterprise Server handle the COBOL DISPLAY verb in CICS applications?
Resolution:
DISPLAY UPON CONSOLE to get messages into the Enterprise Server Console Log will only work with web services and JCL batch jobs but not CICS transactions. Therefore another technique is required.
First, add the OUTDD and SHARE-OUTDD directives to the compile:
cob -vgz *.cbl -C "CICSECM OSVS OUTDD(SYSOUT 121 R) SHARE-OUTDD"
Next, assign a value to the environment variable DD_SYSOUT to specify the location and file name for the SYSOUT dataset. This can be achieved using the [ES-ENVIRONMENT] section in the server configuration information:
[ES-Environment]
DD_SYSOUT=/home/example/CICSOUT
It is necessary to stop and restart the server after making the change for it to come into effect. With the above changes in place, any DISPLAY statements in a CICS program will be appended to /home/example/CICSOUT.
Incident Number: 2262254
#EnterpriseDeveloper
#MFDS