Q: Why my COBOL 3GL cannot find the language file (CP)?

A: When using the ACXASENV and setting the language correctly, in some platforms the ACX API may not know the location of the NAVROOT and the user may get the following error:
Cannot open file '.DEF.FRECP' for read
EDC5047I An invalid file name was
specified as a function parameter.
C077 Could not find symbol 'register_fre' in dynamic library
Starting from Attunity Server v4.8.2.0 we support a new function called ACXINIT2 which should be called instead of the ACXINIT function. This function can set the location of the NAVROOT as follows:

Code:
    03 CP-ENVSTR           PIC X(256) VALUE  IS
             "/DEBUG/ACXTRACE=TRUE,LANGUAGE=FRE,CODEPAGE=IBM297".
    03 CP-ENVOPT           PIC S9(8) COMP VALUE IS 0.
    03 CP-ENVINFO          PIC X(512) VALUE
                           "NAVROOT=PROD.AS4820".

        CALL "ACXINIT2" USING CP-ENVINFO.
        CALL "ACXASENV" USING CP-ENVSTR CP-ENVOPT.