Question
May 6, 2009 at 09:53 AM
chonta

Compiling Mainframe Cobol Program

by chonta . Updated 17 years, 4 months ago

I’m working with a mainfram Cobol Program and i need to use the character ‘]’. When I compile the program am having the following problem:

In the program I have the following sentence:
IF BSM-1R-CU-PRISMODIND = “]”
MOVE “Q” TO BSI-125-MODIND
ELSE
MOVE BSM-1R-CU-PRISMODIND TO BSI-125-MODIND
END-IF

When I look into the listing of the program in the compiler I have the following:

IF BSM-1R-CU-PRISMODIND ” ”
MOVE “Q” TO BSI-125-MODIND
ELSE
MOVE BSM-1R-CU-PRISMODIND TO BSI-125-MODIND

L character(s) were found starting with ” ” in column 16. The
rs were discarded.
As you can see for some reason the compiler asume the character ] as blank

If somebody can help me, I’d appreciate a lot

thanks
Chonta

This discussion is locked

All Comments