Skip to main content

Hi,

Good Afternoon!!!

Need Help for the below Errors while compiling a RM COBOL With Visual COBOL.

I am trying to CONVERRT the RM Program into Visual COBOL Version  USING the Microfocus as Dialect.

I am getting the below Compilation error for one of my Program. And seems the RM Statement is not accepted in Visual COBOL.

Here is the code :- 

 WS-ACCEPT-LAST LINE WS-CRT-BEG-LINE POSITION 13
028600 PROMPT ECHO.

And The error is :- 
COBCH0012S Operand ECHO is not declared YYYYY.cbl /CBL_RTE line 328 COBOL 

Another issue :- 

DISPLAY DISPLAY-HEADER-1
LINE WS-CRT-BEG-LINE POSITION 1 REVERSE.

Error :-  
COBCH0012S Operand REVERSE is not declared YYYY.cbl /CBL_RTE line 522 COBOL

Thanks !!

Hi,

Good Afternoon!!!

Need Help for the below Errors while compiling a RM COBOL With Visual COBOL.

I am trying to CONVERRT the RM Program into Visual COBOL Version  USING the Microfocus as Dialect.

I am getting the below Compilation error for one of my Program. And seems the RM Statement is not accepted in Visual COBOL.

Here is the code :- 

 WS-ACCEPT-LAST LINE WS-CRT-BEG-LINE POSITION 13
028600 PROMPT ECHO.

And The error is :- 
COBCH0012S Operand ECHO is not declared YYYYY.cbl /CBL_RTE line 328 COBOL 

Another issue :- 

DISPLAY DISPLAY-HEADER-1
LINE WS-CRT-BEG-LINE POSITION 1 REVERSE.

Error :-  
COBCH0012S Operand REVERSE is not declared YYYY.cbl /CBL_RTE line 522 COBOL

Thanks !!

Hi Ashakanta,

Did you try using this directive starting at column 7?

$SET DIALECT"RM"
Regards,

Hi,

Good Afternoon!!!

Need Help for the below Errors while compiling a RM COBOL With Visual COBOL.

I am trying to CONVERRT the RM Program into Visual COBOL Version  USING the Microfocus as Dialect.

I am getting the below Compilation error for one of my Program. And seems the RM Statement is not accepted in Visual COBOL.

Here is the code :- 

 WS-ACCEPT-LAST LINE WS-CRT-BEG-LINE POSITION 13
028600 PROMPT ECHO.

And The error is :- 
COBCH0012S Operand ECHO is not declared YYYYY.cbl /CBL_RTE line 328 COBOL 

Another issue :- 

DISPLAY DISPLAY-HEADER-1
LINE WS-CRT-BEG-LINE POSITION 1 REVERSE.

Error :-  
COBCH0012S Operand REVERSE is not declared YYYY.cbl /CBL_RTE line 522 COBOL

Thanks !!

This will work by adding the $set RM directive. This still allows you to have the DIALECT"MF" on but it allows for more compatible RM syntax like what you have here.