In Visual cobol eclipse, While compiling the cobol program XXXXX.pco , getting error as " PCB-S-00106, Unable to open INCLUDE file ....."
This is the first time in my machine i am doing compilation.
In Visual cobol eclipse, While compiling the cobol program XXXXX.pco , getting error as " PCB-S-00106, Unable to open INCLUDE file ....."
This is the first time in my machine i am doing compilation.
In Visual cobol eclipse, While compiling the cobol program XXXXX.pco , getting error as " PCB-S-00106, Unable to open INCLUDE file ....."
This is the first time in my machine i am doing compilation.
Hello,
Without knowing what options you have set for the Oracle Pro*COBOL pre-compiler and compiler directives in Eclipse, it is somewhat of a guess of what is happening. The PCB message is from the Pro*COBOL pre-compiler (procob).
Most likely it can't find the copybook or include file. there are different ways to resolve copybooks that are part of EXEC SQL INCLUDE statements. Here is an older article based on the NetExpress IDE. The concepts still apply, but since you are using Visual COBOL Eclipse, it will look somewhat different in how these settings are configured.
How do you specify location of copybooks and include files using Oracle ?
I hope this helps.
Hello,
Without knowing what options you have set for the Oracle Pro*COBOL pre-compiler and compiler directives in Eclipse, it is somewhat of a guess of what is happening. The PCB message is from the Pro*COBOL pre-compiler (procob).
Most likely it can't find the copybook or include file. there are different ways to resolve copybooks that are part of EXEC SQL INCLUDE statements. Here is an older article based on the NetExpress IDE. The concepts still apply, but since you are using Visual COBOL Eclipse, it will look somewhat different in how these settings are configured.
How do you specify location of copybooks and include files using Oracle ?
I hope this helps.
Hi Michael,
Thanks for replying, Can you please find the Oracle Proc cobol Setting.
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 p(cp) ENDP
Hi Michael,
Thanks for replying, Can you please find the Oracle Proc cobol Setting.
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 p(cp) ENDP
[cobol] PCB-S-00106, Unable to open INCLUDE file "GIFIXX56"
[cobol] PCB-S-00106, Unable to open INCLUDE file "GIFIXX56"
Now i have added the below PRO*COBOL
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 p(cp) P(C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\dclgen_project;C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\include_project) ENDP
Getting error as
[cobol] Compiling GIFPCA50.pco...
[cobol] *CP 105-S
[cobol] Undefined internal error. Please contact Micro Focus SupportLine.
[cobol] COBCH0018S Preprocessor error on initialization : C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\GIFPCA50.pco(0,0,0)
[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16
BUILD FAILED
Build finished with 1 errors, 0 warnings, 0 notices and a maximum exit code of 16
C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\.cobolBuild:1270: Compilation errors have occurred
Total time: 0 seconds
Hi Michael,
Thanks for replying, Can you please find the Oracle Proc cobol Setting.
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 p(cp) ENDP
Are you also setting COBCPY OR adding the copybook folders to the dependency paths in the project settings. Otherwise use Option 2 in that article.
Are you also setting COBCPY OR adding the copybook folders to the dependency paths in the project settings. Otherwise use Option 2 in that article.
Yes in the environment variable of my machine i have included the option 2
Now i have added the below PRO*COBOL
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 p(cp) P(C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\dclgen_project;C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\include_project) ENDP
Getting error as
[cobol] Compiling GIFPCA50.pco...
[cobol] *CP 105-S
[cobol] Undefined internal error. Please contact Micro Focus SupportLine.
[cobol] COBCH0018S Preprocessor error on initialization : C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\GIFPCA50.pco(0,0,0)
[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16
BUILD FAILED
Build finished with 1 errors, 0 warnings, 0 notices and a maximum exit code of 16
C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\.cobolBuild:1270: Compilation errors have occurred
Total time: 0 seconds
if the folders specified between P( and ) ENDP are your copybook folders, this is not the correct way to configure this if using CP.
It should be: P(CP) ENDP to turn on the copybook pre-processor and then you also need to add the copybook paths to the dependency folders in your project. You can also set COBCPY, but it is a bit cleaner imo if you set them in the project dependency and keep them specified in one place to avoid conflicts.
Additionally: P(<name of preprocessor>) endp
In this case the name of the preprocessor is the CP...the copybook pre-processor.
endp indicates the end in case you need to add additional directives after it.
Using the CP Preprocessor to Expand Copybooks (microfocus.com)
if the folders specified between P( and ) ENDP are your copybook folders, this is not the correct way to configure this if using CP.
It should be: P(CP) ENDP to turn on the copybook pre-processor and then you also need to add the copybook paths to the dependency folders in your project. You can also set COBCPY, but it is a bit cleaner imo if you set them in the project dependency and keep them specified in one place to avoid conflicts.
Additionally: P(<name of preprocessor>) endp
In this case the name of the preprocessor is the CP...the copybook pre-processor.
endp indicates the end in case you need to add additional directives after it.
Using the CP Preprocessor to Expand Copybooks (microfocus.com)
Hi Michael,
Thanks for helping me,
I changed and used the preprocessor with below.
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 P(C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\dclgen_project;C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\include_project) p(cp) ENDP
But still i am getting error as same
[cobol] Compiling GIFPCA50.pco...
[cobol] *CP 105-S
[cobol] Undefined internal error. Please contact Micro Focus SupportLine.
[cobol] COBCH0018S Preprocessor error on initialization : C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\GIFPCA50.pco(0,0,0)
[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16
Please help me on this.
Hi Michael,
Thanks for helping me,
I changed and used the preprocessor with below.
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 P(C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\dclgen_project;C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\include_project) p(cp) ENDP
But still i am getting error as same
[cobol] Compiling GIFPCA50.pco...
[cobol] *CP 105-S
[cobol] Undefined internal error. Please contact Micro Focus SupportLine.
[cobol] COBCH0018S Preprocessor error on initialization : C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\GIFPCA50.pco(0,0,0)
[cobol] Compilation complete with 1 errors, 0 warnings, 0 notices and an exit code of 16
Please help me on this.
Why do you have this option?
P(C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\dclgen_project;C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\include_project)
This is not valid. The P or preprocess directive is used to specify a pre-processor.
PREPROCESS, P (microfocus.com) CP is a preprocessor so that's why you need: p(cp) endp
You have several folders and I'm not sure what they are for, but it is not a valid use of the P directive. That is why you are getting this error:
COBCH0018S Preprocessor error on initialization
It's trying to load/initialize what you have specified for the P directive.
Remove that from your directives
Why do you have this option?
P(C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\dclgen_project;C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\include_project)
This is not valid. The P or preprocess directive is used to specify a pre-processor.
PREPROCESS, P (microfocus.com) CP is a preprocessor so that's why you need: p(cp) endp
You have several folders and I'm not sure what they are for, but it is not a valid use of the P directive. That is why you are getting this error:
COBCH0018S Preprocessor error on initialization
It's trying to load/initialize what you have specified for the P directive.
Remove that from your directives
Those paths are of my copy book location, so i included them,
If i removed them and tried like below,
Oracle preprocessor
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 p(cp) ENDP
Program is using the copy book like below...
sample: GIFPWD99.PCO
000790 ENVIRONMENT DIVISION.
000800
000810 INPUT-OUTPUT SECTION.
000820
000830 FILE-CONTROL.
000840
000850 SELECT O-WD99FT
ASSIGN TO W-WD99T01O
ORGANIZATION IS LINE SEQUENTIAL
FILE STATUS IS W-FILE-STATUS.
EXEC SQL
INCLUDE COPYCOM1
END-EXEC.
But while compiled getting error as below
-------------------------------BUILD STARTED-------------------------------
compileSource:
gswcobol_build_config.FileCompile:
FileCompile.gswcobol_build_config.cobol:
[cobol]
[cobol] Compiling GIFPWD99.PCO...
[cobol]
[cobol] * Cobsql Integrated Preprocessor
[cobol] * CSQL-I-049: Unable to support the SOURCETABSTOP directive, defaulting to 8
[cobol] * CSQL-I-003: COBSQLTYPE is incorrect defaulting to Oracle
[cobol] * CSQL-I-018: Invoking Oracle Precompiler/Translator
[cobol] 96
[cobol] Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
[cobol]
[cobol] COBCH0803S 000106:Unable to open INCLUDE file "COPYCOM1" : C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\GIFPWD99.PCO(96,9,9)
[cobol] System default option values taken from: C:\\oracle_19\\NT_193000_client_home\\precomp\\admin\\pcbcfg.cfg
[cobol]
.
.
.
:
;
Those paths are of my copy book location, so i included them,
If i removed them and tried like below,
Oracle preprocessor
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 p(cp) ENDP
Program is using the copy book like below...
sample: GIFPWD99.PCO
000790 ENVIRONMENT DIVISION.
000800
000810 INPUT-OUTPUT SECTION.
000820
000830 FILE-CONTROL.
000840
000850 SELECT O-WD99FT
ASSIGN TO W-WD99T01O
ORGANIZATION IS LINE SEQUENTIAL
FILE STATUS IS W-FILE-STATUS.
EXEC SQL
INCLUDE COPYCOM1
END-EXEC.
But while compiled getting error as below
-------------------------------BUILD STARTED-------------------------------
compileSource:
gswcobol_build_config.FileCompile:
FileCompile.gswcobol_build_config.cobol:
[cobol]
[cobol] Compiling GIFPWD99.PCO...
[cobol]
[cobol] * Cobsql Integrated Preprocessor
[cobol] * CSQL-I-049: Unable to support the SOURCETABSTOP directive, defaulting to 8
[cobol] * CSQL-I-003: COBSQLTYPE is incorrect defaulting to Oracle
[cobol] * CSQL-I-018: Invoking Oracle Precompiler/Translator
[cobol] 96
[cobol] Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
[cobol]
[cobol] COBCH0803S 000106:Unable to open INCLUDE file "COPYCOM1" : C:\\2_GSW_TEAM\\GMF_CODES\\gswcobol_base\\source_project\\GIFPWD99.PCO(96,9,9)
[cobol] System default option values taken from: C:\\oracle_19\\NT_193000_client_home\\precomp\\admin\\pcbcfg.cfg
[cobol]
.
.
.
:
;
My guess is the copybook paths are not being resolved either via COBCPY environment variable or the Build Path->Dependencies in your project settings. Perhaps you can double check your environment and settings.
You could also try removing the P(CP) endp altogether (not using the copybook expansion) and adding this to the COBSQL settings:
INCLUDE=<path1> INCLUDE=<path2> These are Oracle pr*cobol options
e.g.:
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 INCLUDE=<path1> INCLUDE=<path2> endp
P(cobsql) specifies the cobsql pre-processor
end-cobsql signals the end of cobsql directives to the cobsql pre-processor itself...After end-cobsql the directives/options are passed to the oracle pre-compiler
endp is a COBOL compiler directive signaling the end of pre-processor and are passed to the cobol compiler
This is all in the documentation:
PREPROCESS, P (microfocus.com)
PREPROCESS(cobsql) (microfocus.com)
My guess is the copybook paths are not being resolved either via COBCPY environment variable or the Build Path->Dependencies in your project settings. Perhaps you can double check your environment and settings.
You could also try removing the P(CP) endp altogether (not using the copybook expansion) and adding this to the COBSQL settings:
INCLUDE=<path1> INCLUDE=<path2> These are Oracle pr*cobol options
e.g.:
P(cobsql) COBSQLTYPE=ORACLE8 DISPLAY MAKESYN VERBOSE END-COBSQL comp5=yes hold_cursor=yes mode=ansi varchar=yes sqlcheck=full userid=whsview/dra!gon0@gmgswsd1 INCLUDE=<path1> INCLUDE=<path2> endp
P(cobsql) specifies the cobsql pre-processor
end-cobsql signals the end of cobsql directives to the cobsql pre-processor itself...After end-cobsql the directives/options are passed to the oracle pre-compiler
endp is a COBOL compiler directive signaling the end of pre-processor and are passed to the cobol compiler
This is all in the documentation:
Hi Michael,
Thanks for sharing the above info, I have made changes accordingly but still i am facing the same error. Is there any option of sharing my screen and showing with you, It might helpful for me to resolve this issue asap.
Hi Michael,
Thanks for sharing the above info, I have made changes accordingly but still i am facing the same error. Is there any option of sharing my screen and showing with you, It might helpful for me to resolve this issue asap.
Hi Varun Vadala,
I'm sorry to hear you are still having issues with this. Because of the complexity of the issue, please open a Support Case on the Micro Focus Customer Portal, http://portal.microfocus.com. If you encounter any problems opening a Case, please contact Micro Focus Customer Support at 1-800-509-1800. If you are calling from outside of the United States, you can see the following web page to find the appropriate number for your location:
https://www.microfocus.com/en-us/contact-support/stackb
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.