Good morning.
My organization is in the process of upgrading from Visual COBOL 3 to Visual COBOL 7. We works with VC for eclipse runing on UNIX.
When we are compiled the programs this error appear CSQL-F-026
The code of the program is :
identification division.
program-id. desacomp.
author. arquitectura.
date-written. date.
******************************************************************
* Programa de prueba para fallos de compilacion *
******************************************************************
environment division.
configuration section.
special-names.
decimal-point is comma.
input-output section.
working-storage section.
exec sql include tabdes end-exec.
exec sql BEGIN DECLARE SECTION
end-exec.
*----variables Host
01 sql-var2 PIC X(120).
exec sql END DECLARE SECTION
end-exec.
copy 'cwdesacomp'.
linkage section.
procedure division .
********************
exec sql
select desdes
into :sql-var2
from tabdes
where descod = 'DIV'
and desdes [62,62] = '*'
end-exec
move sqlcode to wk-variable2
if sqlcode= 1
move 'OK' to wk-variable1
else
move 'KO' to wk-variable1
end-if
stop run
.
Code of tabdes include:
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
01 TABDES.
02 DESCOD PIC X(3).
02 DESCLA PIC X(15).
02 DESDES PIC X(186).
EXEC SQL END DECLARE SECTION END-EXEC.
Code of cwdesacomp copy :
01 wk-variable1 pic x(2).
01 wk-variable2 pic 9(4).
This works well in our Visual COBOL v3 (Informix + AIX 7.1).
And it works well when we add a newline after "end-exec." and before the comnet line "*----variables Host." or when whe write “exec sql BEGIN DECLARE SECTION end-exec.” in a unique line.
Many other options were tried, but the summary is that we wish to recover the behavior we had in VC v3 because we have a lot of programs with this kind of source .
Is there some compilation option/directive/whatever to make this version 7 behave like the old one?
Thanks,