Skip to main content

Cobol display on CICS environment

  • October 20, 2021
  • 1 reply
  • 0 views

I have a batch program that issue a DISPLAY command.
When this program is called by a program on MFES executing on CICS environment, I have an abend (and message about SYSOUT).
Is it possible use DISPLAY command on CICS environment and it is possible where the message from display will be?
Other issue is that the batch program does not appears at the Active PPT (and when I issue the command CMPT INQUIRE BATCHPGM the response is "program not found")
Is it normal this situation on CICS?

Thanks in advance.


#EnterpriseServer

1 reply

Garry Horton
  • New Participant
  • 1 reply
  • November 19, 2021

I have a batch program that issue a DISPLAY command.
When this program is called by a program on MFES executing on CICS environment, I have an abend (and message about SYSOUT).
Is it possible use DISPLAY command on CICS environment and it is possible where the message from display will be?
Other issue is that the batch program does not appears at the Active PPT (and when I issue the command CMPT INQUIRE BATCHPGM the response is "program not found")
Is it normal this situation on CICS?

Thanks in advance.


#EnterpriseServer

I'm not sure if it is related, but check the value of the OUTDD compiler directive.

When OUTDD is specified, all format 1 DISPLAY statements that either have no UPON option or specify UPON SYSOUT, and all EXHIBIT statements and the output from TRACE, are transformed into WRITE statements, writing to a file with the specified external filename.

The filename can be mapped onto physical filenames in the same way as other files with external filenames; that is, by using environment variables or the External File Mapper.

If you specify this directive in an enterprise server environment, any corresponding catalog attributes will override the rsize and rtype parameters; therefore, you will also need to update the catalog attributes to preserve the behavior set by the directive.