Skip to main content

RM to Visual COBOL Conversion Compilation Issue :- With PROMPT ECHO.

  • October 5, 2023
  • 2 replies
  • 0 views

ashakanta pradhan

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 !!

2 replies

Juan Urraburu
  • Participating Frequently
  • October 5, 2023

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,

Chris Glazier
Forum|alt.badge.img+2

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.