TRANSACTION-STATUS 99 after successful START TRANSACTION

0 Likes

Problem:

After upgrading to ACUCOBOL-GT version 10 a successful START TRANSACTION operation the TRANSACTION-STATUS is set to 99 which indicates ‘not supported’.  All of the conditional checks for success, TRANSACTION-STATUS = 0, now fail.

Solution:

This is due to ACUCOBOL-GT version 10 including by default the RMFM file system which does not support transactions. The START TRANSACTION operation checks all file systems available and since the RMFM does not support transactions TRANSACTION-STATUS is set to 99.

The solution is to add a Runtime configuration setting “RMFM-DETACH 1”. This detaches the RMFM file system so the START operation won’t see it and TRANSACTION-STATUS will be set to zero.  Alternatively, you can remove the RMFM library file itself to prevent it from being loaded.  That is armfm.dll on Windows, and libarmfm.so or libarmfm64.so for non-Windows shared-library builds.  For non-Windows static builds use the configuration setting.

Comment List
Related
Recommended