Highlighted
Absent Member.
Absent Member.
1105 views

Compilation Error

Hi,

I am compiling .cbl in unix environment using Visual Cobol Development Hub, having below errors.

625 EXEC SQL VAR WS-KCT-ROWID IS ROWID END-EXEC.
* 801-S*********************************************** ( 0)**
** External Compiler Module message
** ES0100
1032 END-EXEC
* 801-S**************** ( 11)**
** External Compiler Module message
** ES0100 Host variable used but not declared
1139 END-EXEC.
* 801-S************ ( 18)**
** External Compiler Module message
** ES0100 Host variable used but not declared
1443 END-EXEC.
* 801-S************ ( 20)**
** External Compiler Module message
** ES0100 Host variable used but not declared
* 302-S************ ( 26)**
** IF....ELSE or scope-delimiter mismatch
1463 END-EXEC.
* 801-S************ ( 26)**
** External Compiler Module message
** ES0100 Host variable used but not declared
* 302-S************ ( 26)**
** IF....ELSE or scope-delimiter mismatch

Any ideas?

Thank You,

Ramesh

0 Likes
4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Compilation Error

The errors are indicating that you are using syntax which is not supported in OpenESQL.

You are declaring a variable using Oracle PL/SQL which is not directly supported.

Where did this code come from? Was it previously compiled using Pro*COBOL instead of OpenESQL?

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Compilation Error

Hi Chris,

Earlier this was compiled using Server Express Cobol 5.1.

Thank You,

Ramesh

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Compilation Error

Did you use the same set of compiler directives in SX as you are in VC or did you previously use the Oracle Pro*COBOL precompiler  with SX?

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Compilation Error

Hi Chris,

I am using the same set of compiler directives. Nothing has changed.

     $set sql(dbman=odbc targetdb=ORACLEOCI)

     $SET IBMCOMP

==================================

Compiler command

cob64 -x -t -P -C "sql(targetdb==oracleoci)"

Thank You,

Ramesh

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.