Screen section

“Redirection is not supported” error in COBOL compilers

“Redirection is not supported” is a common error in GnuCOBOL and OpenCOBOLIDE. It can occur when you try to run a program containing SCREEN SECTION in it.

redirection is not supported
redirection is not supported

 

Below is the program that i was trying to run.

IDENTIFICATION DIVISION.
PROGRAM-ID. HELLOWORLD.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 RESPONSE-IN-WS PIC X(5).
SCREEN SECTION.
01 DATA-ENTRY-SCREEN.
    05 VALUE “MY FIRST SCREEN” BLANK SCREEN         LINE 1 COL 50.
    05 RESPONSE-INPUT                               LINE 14 COL 45
              PIC X(5) TO RESPONSE-IN-WS.
PROCEDURE DIVISION.
          DISPLAY DATA-ENTRY-SCREEN.
          ACCEPT DATA-ENTRY-SCREEN.
          STOP RUN.

The program contains a SCREEN SECTION.

To remove this error you can simply just edit an option in the preferences tab of the OpenCOBOLIDE.

  1. Go to Edit on the top left menu.
  2. Then click on Preferences.

In Preferences there is an option “Run in external terminal”. Check this option. You are good to go now.

Run in a separate terminal
Run in a separate terminal option

If i run my program now, then it will display the screen and wont show that error anymore.

Screen section
Screen section

 

0 0 vote
Article Rating
Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
yhousni
yhousni
7 months ago

thks a lot for this helpful tuto

Get the full solution for Master the Mainframe contest 2019

FREE COURSE
X

Want to be the first one to receive my future courses and coupons?

Subscribe to my email list.

Thank You For Subscribing

Make sure to check your Spam Folder and add my email as trusted !!!