Skip to main content

I have installed Visual cobol recently , I'm getting below error while im compile the code/


-------------------------------BUILD STARTED-------------------------------

compileSource:

gswcobol_build_config.FileCompile:

FileCompile.gswcobol_build_config.cobol:
[cobol]
[cobol] Compiling GIFPCD50.pco...
[cobol]
[cobol] * Cobsql Integrated Preprocessor
[cobol] * CSQL-I-049: Unable to support the SOURCETABSTOP directive, defaulting to 8
[cobol] * CSQL-I-004: Accepted VERBOSE
[cobol] * CSQL-I-005: Passing comp5=yes to Oracle Precompiler
[cobol] * CSQL-I-005: Passing hold_cursor=yes to Oracle Precompiler
[cobol] * CSQL-I-005: Passing mode=ansi to Oracle Precompiler
[cobol] * CSQL-I-005: Passing varchar=yes to Oracle Precompiler
[cobol] * CSQL-I-005: Passing sqlcheck=full to Oracle Precompiler
[cobol] * CSQL-I-005: Passing userid=whsview/dra!gon0@gmgswsd1 to Oracle Precompiler
[cobol] * CSQL-I-008: Invoking cp Preprocessor
[cobol] * CSQL-I-018: Invoking Oracle Precompiler/Translator
[cobol] * CSQL-E-036: Unable to open the precompiler file: "GIFPCD50.cs9"
[cobol] * CSQL-E-023: File Status 3/ 5
[cobol] COBCH0803S - Unable to open the precompiler file : C:\\VisualCobolWorkspace\\source_project\\GIFPCD50.pco(1,9,9)
[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16

compile:


BUILD FAILED
Build finished with 1 errors, 0 warnings, 0 notices and a maximum exit code of 16

Maximum exit code exceeded: 16

Total time: 10 seconds
-------------------------------BUILD FINISHED------------------------------

My SQL preprossor Directives:

P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE=true END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 ENDP

Please help to resolve the issue

I have installed Visual cobol recently , I'm getting below error while im compile the code/


-------------------------------BUILD STARTED-------------------------------

compileSource:

gswcobol_build_config.FileCompile:

FileCompile.gswcobol_build_config.cobol:
[cobol]
[cobol] Compiling GIFPCD50.pco...
[cobol]
[cobol] * Cobsql Integrated Preprocessor
[cobol] * CSQL-I-049: Unable to support the SOURCETABSTOP directive, defaulting to 8
[cobol] * CSQL-I-004: Accepted VERBOSE
[cobol] * CSQL-I-005: Passing comp5=yes to Oracle Precompiler
[cobol] * CSQL-I-005: Passing hold_cursor=yes to Oracle Precompiler
[cobol] * CSQL-I-005: Passing mode=ansi to Oracle Precompiler
[cobol] * CSQL-I-005: Passing varchar=yes to Oracle Precompiler
[cobol] * CSQL-I-005: Passing sqlcheck=full to Oracle Precompiler
[cobol] * CSQL-I-005: Passing userid=whsview/dra!gon0@gmgswsd1 to Oracle Precompiler
[cobol] * CSQL-I-008: Invoking cp Preprocessor
[cobol] * CSQL-I-018: Invoking Oracle Precompiler/Translator
[cobol] * CSQL-E-036: Unable to open the precompiler file: "GIFPCD50.cs9"
[cobol] * CSQL-E-023: File Status 3/ 5
[cobol] COBCH0803S - Unable to open the precompiler file : C:\\VisualCobolWorkspace\\source_project\\GIFPCD50.pco(1,9,9)
[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16

compile:


BUILD FAILED
Build finished with 1 errors, 0 warnings, 0 notices and a maximum exit code of 16

Maximum exit code exceeded: 16

Total time: 10 seconds
-------------------------------BUILD FINISHED------------------------------

My SQL preprossor Directives:

P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE=true END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 ENDP

Please help to resolve the issue

Hello, one common cause for this error is that the connection to the database fails. Usually because the database name isn't found in tnsnames.ora

Try with the complete service name in your connect string (I hope the one above isn't the real one), i.e username/password@database.example.com

Another thing to try, is to start a command prompt from inside Visual Cobol and use sqlplus to try your connect-string, i.e.

$ sqlplus username/password@dbname

if you get ORA-12154 your environment isn't correct, you're probably missing TNS_ADMIN to point out where your tnsname.ora is located.

Hope this helps,

Robert


Hello, one common cause for this error is that the connection to the database fails. Usually because the database name isn't found in tnsnames.ora

Try with the complete service name in your connect string (I hope the one above isn't the real one), i.e username/password@database.example.com

Another thing to try, is to start a command prompt from inside Visual Cobol and use sqlplus to try your connect-string, i.e.

$ sqlplus username/password@dbname

if you get ORA-12154 your environment isn't correct, you're probably missing TNS_ADMIN to point out where your tnsname.ora is located.

Hope this helps,

Robert

Fantastic Suggestion robert.. It works Now .. Thanks a lot for your help.