I am trying to compile programs using the Windows Visual Cobol command line using the Oracle pre-compiler and getting the following errors;
cobol srsw340.cob brief noanim ibmcomp nolist preprocess(cobsql) mode=ansi include=V:\\hpconv\\copy end-c comp5=yes endp;
Micro Focus COBOL
Version 6.0 (C) Copyright 1984-2021 Micro Focus or one of its affiliates.
* Cobsql Integrated Preprocessor
* CSQL-I-006: Rejected mode=ansi
* CSQL-I-006: Rejected include=V:\\hpconv\\copy
* CSQL-I-003: COBSQLTYPE is incorrect defaulting to Oracle
* CSQL-I-018: Invoking Oracle Precompiler/Translator
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
System default option values taken from: L:\\products\\oracle\\WINDOWS.X64_193000_db_home\\precomp\\admin\\pcbcfg.cfg
Error at line 138, column 11 in file V:\\hpconv\\copy\\srsw340.cob
00530015
..........1
PCB-S-00106, Unable to open INCLUDE file "INDV"
Error at line 141, column 11 in file V:\\hpconv\\copy\\srsw340.cob
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My script looks like this (compile.bat)
set COPYEXT=.cob
set COBCPY=%1
cobol %2 brief noconfirm noverbose noanim ibmcomp nolist preprocess(cobsql) mode=ansi include=%1 end-c comp5=yes endp;
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Note that;
1) It cannot find the SQL "INCLUDE" files (Which have an extension of .COB)
2) It appears to be rejecting the command line options
3) The compiler pauses with a "File SUTL9001 not found - Press [S]top/[R]etry/[C]ontinue/[A]lter-path" quesion. How do i supress that?
Any help is greatly appreciated.
#procobol
#COBOLVISUALCOBOLMIGRATION