Skip to main content

Hi - We are moving from NetExpress 5.1 to Visual Studio 2022/Visual COBOL 8.0

We have several program that use COMMIT TRANSACTION transname-name  these compile in NetExpress but in Visual COBOL they error with 

COBES0100 Incorrect SQL statement syntax near: ONE

We are compiling using the same COBOL.DIR. This the a setting, directive or something else that will get the program to compile without changing the code?

Thanks

Hi - We are moving from NetExpress 5.1 to Visual Studio 2022/Visual COBOL 8.0

We have several program that use COMMIT TRANSACTION transname-name  these compile in NetExpress but in Visual COBOL they error with 

COBES0100 Incorrect SQL statement syntax near: ONE

We are compiling using the same COBOL.DIR. This the a setting, directive or something else that will get the program to compile without changing the code?

Thanks

I can reproduce this behavior but according to the documentation for the COMMIT statement this was not allowed in either product.

It might have been a bug in Net Express to allow it and Visual COBOL is exhibiting the correct behavior.
I cannot seem to find a directive which will revert the behavior back to allow this syntax.