Highlighted
Frequent Contributor.
Frequent Contributor.
724 views

Error 177 and 178 when the project tranferring from Net Express 5.1 to Visual Cobol 3.0

Jump to solution

Hi, Errors 177 and 178 occur when transferring project from Net Express 5.1 to Visual Cobol 3.0

Error    177    COBES0100 : Statement incompatible with BEHAVIOR setting    ELS004XI.cbl[ELS004XZ.CPY]    40    21    OVLISM_lbr
Error    178    COBES0100 : Statement incompatible with BEHAVIOR setting    ELS004XI.cbl[ELS004XZ.CPY]    43    21    OVLISM_lbr
 
these errors will cause the following commands:
 
      *      EXEC SQL
      *        SET SCROLLOPTION DYNAMIC
      *      END-EXEC
      *      EXEC SQL
      *        SET CONCURRENCY OPTCCVAL
      *      END-EXEC

Please explain what I'm wrong with.

Thanks Petr

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

The default SQL(BEHAVIOR) directive has been changed between Net Express and Visual COBOL and this is why you are experiencing this error. You can change the default back to BEHAVIOR=UNOPTIMIZED to get the same behavior as in Net Express.

You can set the directive in your project or globally following the instructions here:

View solution in original post

0 Likes
3 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

The default SQL(BEHAVIOR) directive has been changed between Net Express and Visual COBOL and this is why you are experiencing this error. You can change the default back to BEHAVIOR=UNOPTIMIZED to get the same behavior as in Net Express.

You can set the directive in your project or globally following the instructions here:

View solution in original post

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

Thank you Chris, it helped me.

But I got this error after pressing F11:

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert
This error occurs when there is a mismatch between the compiled program product version and the run-time system that is being loaded. Do you perhaps have a different version of the cblrtsm.dll module located within your PATH? Are you including the Net Express\base\bin path in your PATH? If you are then you should remove it.

If you have a version of the cblrtsm.dll in your NX project folder then you should remove that as well.
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.