Pro*Cobol PCO Compilation problem in Linux

Hi,
DB :oracle 11g on RHEL 5.5
when we are compiling the (Pro*cobol ) PCO code it is giving us the error :
System default option values taken from: /oracle/oracle11g/app/product/11.2.0/dbhome_1/precomp/admin/pcbcfg.cfg
Error at line 320, column 35 in file BR2385.PCO
WHERE A.SOC_NO = :PARAM-SOC
..................................1
PCB-S-00223, Undeclared variable "PARAM-SOC".
when we change the pcbcfg.cfg file with flag : declare_section=no it's compile without error.
But in this scenario cobol app doesn't run.
if we declare the undeclared variable in the section
EXEC SQL BEGIN DECLARE SECTION END-EXEC.
PARAM-SOC PIC X(25).
EXEC SQL END DECLARE SECTION END-EXEC.
and compile it with declare_section=yes then cobol app. run fine.
Are different files generated (cob,int,gnt) after compilation with the option declare_section=no and declare_section=yes.
Pls help us in this regards. we have lot of file which having these issue and we don't want to do manual changes "EXEC SQL BEGIN" in it.
Thanks in advance..

Your code is faulty and has to be fixed.
No compilation problem is present, the compiler correctly barfs.
As this is not a support forum, kindly keep your non-issues out of this forum.
Thank you!!!
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Occi::Number compilation problem in Linux

    Hi,
    I got following error when I complile my application which uses OCCI (Oracle C++ Call Interface) shiped with Oracle 9.2. I added the compiler flag -Dlint .
    When I dont add the compiler flag I dont get following error. My machine is running RedHat linux 7.3
    /usr/bin/g++ -c -I/opt/ora9/product/9.2/rdbms/demo -I/opt/ora9/product/9.2/rdbms/public -I/opt/ora9/product/9.2/plsql/public -I/opt/ora9/product/9.2/network/public myapp.cpp -g -Wall -DLiS -Dlint -DORACLE -I../include -DQT_THREAD_SUPPORT
    In file included from /opt/ora9/product/9.2/rdbms/demo/occi.h:40,
    from ../include/DatabaseSupport.h:17,
    from myapp.cpp:4:
    /opt/ora9/product/9.2/rdbms/demo/occiData.h:374: `oracle::occi::Number::Number (char)' has already been
    declared in `oracle::occi::Number'
    /opt/ora9/product/9.2/rdbms/demo/occiData.h:408: `oracle::occi::Number::operator char () const' has
    already been declared in `oracle::occi::Number'
    If I dont compile my application with -Dlint compiler flag I cant run the application.
    I think this is a bug in occi::Number class
    Any solusion??
    Thanking in advance
    nkran

    Your code is faulty and has to be fixed.
    No compilation problem is present, the compiler correctly barfs.
    As this is not a support forum, kindly keep your non-issues out of this forum.
    Thank you!!!
    Sybrand Bakker
    Senior Oracle DBA

  • CDC compilation problems on linux

    Hi,
    I am trying to compile CDC on linux. My machine is Redhat 9, I am using
    gcc 3.2.2. My java compiler is 1.3.1 (as specified in cdc docs).
    [sharath@DTV2 linux-i686]$ java -version
    java version "1.3.1_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_15-b01)
    Java HotSpot(TM) Client VM (build 1.3.1_15-b01, mixed mode)
    [sharath@DTV2 linux-i686]$ gcc --version
    gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
    Copyright (C) 2002 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    [sharath@DTV2 linux-i686]$ make CVM_DEBUG=true CVM_JAVABIN=/usr/local/jdk1.3.1_15/bin
    ... mkdir ../../build/linux-i687/generated/javavm/runtime
    touch ../../build/linux-i686/generated/empty.mk
    ... mkdir ../../build/linux-i686/generated/flags
    Flag CVM_SYMBOLS changed. Cleaning up.
    Flag CVM_OPTIMIZED changed. Cleaning up.
    Flag CVM_DEBUG changed. Cleaning up.
    Flag CVM_JAVAC_DEBUG changed. Cleaning up.
    Flag CVM_DEBUG_CLASSINFO changed. Cleaning up.
    Flag CVM_DEBUG_STACKTRACES changed. Cleaning up.
    Flag CVM_DEBUG_DUMPSTACK changed. Cleaning up.
    Flag CVM_DEBUG_ASSERTS changed. Cleaning up.
    Flag CVM_CLASSLOADING changed. Cleaning up.
    Flag CVM_NO_LOSSY_OPCODES changed. Cleaning up.
    Flag CVM_INSTRUCTION_COUNTING changed. Cleaning up.
    Flag CVM_GCCHOICE changed. Cleaning up.
    Flag CVM_NO_CODE_COMPACTION changed. Cleaning up.
    Flag CVM_XRUN changed. Cleaning up.
    Flag CVM_JVMDI changed. Cleaning up.
    Flag CVM_JVMPI changed. Cleaning up.
    Flag CVM_JVMPI_TRACE_INSTRUCTION changed. Cleaning up.
    Flag CVM_CLASSLIB_JCOV changed. Cleaning up.
    Flag CVM_REFLECT changed. Cleaning up.
    Flag CVM_SERIALIZATION changed. Cleaning up.
    Flag CVM_PRELOAD_LIB changed. Cleaning up.
    Flag CVM_PRELOAD_TEST changed. Cleaning up.
    Flag CVM_DYNAMIC_LINKING changed. Cleaning up.
    Flag CVM_TEST_GC changed. Cleaning up.
    Flag CVM_TEST_GENERATION_GC changed. Cleaning up.
    Flag CVM_TIMESTAMPING changed. Cleaning up.
    Flag CVM_TEST_CHAR_STATICINIT changed. Cleaning up.
    Flag CVM_INTERPRETER_LOOP changed. Cleaning up.
    Flag CVM_JIT changed. Cleaning up.
    Flag J2ME_CLASSLIB changed. Cleaning up.
    Flag CVM_CSTACKANALYSIS changed. Cleaning up.
    Flag CVM_TRACE_JIT_BCTOIR changed. Cleaning up.
    Flag CVM_TRACE_JIT_CODEGEN changed. Cleaning up.
    Flag CVM_TRACE_JIT_STATS changed. Cleaning up.
    Flag CVM_TRACE_JIT_STATUS changed. Cleaning up.
    Flag CVM_JIT_COLLECT_STATS changed. Cleaning up.
    Flag CVM_JIT_ESTIMATE_COMPILATION_SPEED changed. Cleaning up.
    Flag CVM_CCM_COLLECT_STATS changed. Cleaning up.
    Flag CVM_JIT_PROFILE changed. Cleaning up.
    Flag OPT_PKGS changed. Cleaning up.
    Flag CVM_PRODUCT_TYPE changed. Cleaning up.
    Flag CVM_LVM changed. Cleaning up.
    ... generating ../../build/linux-i686/generated/javavm/include/build_defs.h
    /*** Definitions generated at build time ***/
    #ifndef BUILDDEFS_H
    #define BUILDDEFS_H
    #define CVM_BUILD_OPTIONS \
         "CVM_SYMBOLS=true\n" \
         "CVM_OPTIMIZED=false\n" \
         "CVM_DEBUG=true\n" \
         "CVM_JAVAC_DEBUG=true\n" \
         "CVM_DEBUG_CLASSINFO=true\n" \
         "CVM_DEBUG_STACKTRACES=true\n" \
         "CVM_DEBUG_DUMPSTACK=true\n" \
         "CVM_DEBUG_ASSERTS=true\n" \
         "CVM_CLASSLOADING=true\n" \
         "CVM_NO_LOSSY_OPCODES=false\n" \
         "CVM_INSTRUCTION_COUNTING=false\n" \
         "CVM_GCCHOICE=generational\n" \
         "CVM_NO_CODE_COMPACTION=false\n" \
         "CVM_XRUN=false\n" \
         "CVM_JVMDI=false\n" \
         "CVM_JVMPI=false\n" \
         "CVM_JVMPI_TRACE_INSTRUCTION=false\n" \
         "CVM_CLASSLIB_JCOV=false\n" \
         "CVM_REFLECT=true\n" \
         "CVM_SERIALIZATION=true\n" \
         "CVM_PRELOAD_LIB=false\n" \
         "CVM_PRELOAD_TEST=false\n" \
         "CVM_DYNAMIC_LINKING=true\n" \
         "CVM_TEST_GC=false\n" \
         "CVM_TEST_GENERATION_GC=false\n" \
         "CVM_TIMESTAMPING=false\n" \
         "CVM_TEST_CHAR_STATICINIT=false\n" \
         "CVM_INTERPRETER_LOOP=Split\n" \
         "CVM_JIT=false\n" \
         "J2ME_CLASSLIB=cdc\n" \
         "CVM_CSTACKANALYSIS=false\n" \
         "CVM_TRACE_JIT_BCTOIR=false\n" \
         "CVM_TRACE_JIT_CODEGEN=false\n" \
         "CVM_TRACE_JIT_STATS=false\n" \
         "CVM_TRACE_JIT_STATUS=false\n" \
         "CVM_JIT_COLLECT_STATS=false\n" \
         "CVM_JIT_ESTIMATE_COMPILATION_SPEED=false\n" \
         "CVM_CCM_COLLECT_STATS=false\n" \
         "CVM_JIT_PROFILE=false\n" \
         "OPT_PKGS=\n" \
         "CVM_PRODUCT_TYPE=standard\n" \
         "CVM_LVM=false\n" \
    #define CVM_PROP_JAVA_VERSION     "J2ME CDC 1.0.1"
    #define CVM_PROP_JAVA_VENDOR     "Sun Microsystems Inc."
    #define CVM_PROP_JAVA_VENDOR_URL     "http://java.sun.com/"
    #define CVM_PROP_JAVA_VENDOR_URL_BUG     "http://java.sun.com/cgi-bin/bugreport.cgi"
    #define CVM_PROP_JAVA_SPEC_NAME     "J2ME CDC API Specification"
    #define CVM_PROP_JAVA_SPEC_VERSION     "1.0a"
    #define CVM_PROP_JAVA_SPEC_VENDOR     "Sun Microsystems Inc."
    #define CVM_PROP_JAVA_CLASS_VERSION     "47.0"
    #define CVM_PROP_JAVA_VM_NAME     "CVM"
    #define CVM_PROP_JAVA_VM_VERSION     "1.0.1-std-b12"
    #define CVM_PROP_JAVA_VM_INFO     "interpreter loop"
    #define CVM_PROP_JAVA_VM_VENDOR     "Sun Microsystems Inc."
    #define CVM_PROP_JAVA_VM_SPEC_NAME     "Java Virtual Machine Specification"
    #define CVM_PROP_JAVA_VM_SPEC_VERSION     "1.0a"
    #define CVM_PROP_JAVA_VM_SPEC_VENDOR     "Sun Microsystems Inc."
    #define CVM_CLASSLIB_JAR_NAME     "cdc.jar"
    #endif /* BUILDDEFS_H */
    ... mkdir ../../build/linux-i686/obj
    ... mkdir ../../build/linux-i686/bin
    ... mkdir ../../build/linux-i686/generated/javavm/runtime/opcodeconsts
    ... mkdir ../../build/linux-i686/generated/jni
    ... mkdir ../../build/linux-i686/generated/cni
    ... mkdir ../../build/linux-i686/generated/offsets
    ... mkdir ../../build/linux-i686/btclasses
    ... mkdir ../../build/linux-i686/testclasses
    ... mkdir ../../build/linux-i686/lib
    ... mkdir ../../build/linux-i686/cdc_classes
    ... mkdir ../../build/linux-i686/lib/security
    ... mkdir ../../build/classes.jcc
    Checking for build-time classes to compile ...
    Compiling build-time classes...
    error: compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null, null, null, null, null, null, null
    error: compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null, null, null, null, null, null, null
    Same error messages repeats for over 100 times...
    Please help.
    Thanks in advance,
    Sharath

    Sharath,
    I am new in this field.Want to work in this CDC field.Kindly give me the details of how to compile the code on Linux Platform.Can u mail me details of compilation at [email protected] urgent

  • 8i: PRO*C Sample Compile Problems

    I'm fairly new to Linux but not to Oracle. I am trying to
    compile the sample PRO*C programs and running into difficulty.
    The first problem I had was that $ORACLE_HOME/bin/proc was not
    installed with execute permissions (strange that the OUI didn't
    set the permisssions properly; I checked the root.sh file, but
    nothing was there for proc).
    After setting execute permissions (chmod +x proc), I ran the
    following from $ORACLE_HOME/precomp/demo/proc
    ---- cut ----
    [oracle@skinner proc]$ make -f demo_proc.mk sample1
    gmake -
    f /u01/app/oracle/product/8.1.5/precomp/demo/proc/demo_proc.mk
    OBJS=sample1.o EXE=sample1 build
    gmake[1]: Entering directory
    `/u01/app/oracle/product/8.1.5/precomp/demo/proc'
    proc iname=sample1
    Pro*C/C++: Release 8.1.5.0.0 - Production on Sun Aug 15 15:05:47
    1999
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    System default option values taken
    from: /u01/app/oracle/product/8.1.5/precomp/admin/pcscfg.cfg
    Error at line 33, column 11 in file /usr/include/stdio.h
    # include <stddef.h>
    ..........1
    PCC-S-02015, unable to open include file
    Error at line 38, column 11 in file /usr/include/stdio.h
    # include <stdarg.h>
    ..........1
    PCC-S-02015, unable to open include file
    Error at line 29, column 10 in file /usr/include/bits/types.h
    #include <stddef.h>
    .........1
    PCC-S-02015, unable to open include file
    Error at line 14, column 10 in file /usr/include/_G_config.h
    #include <stddef.h>
    .........1
    PCC-S-02015, unable to open include file
    Error at line 48, column 11 in file /usr/include/libio.h
    # include <stdarg.h>
    ..........1
    PCC-S-02015, unable to open include file
    gmake[1]: *** [sample1.o] Segmentation fault (core dumped)
    gmake[1]: Leaving directory
    `/u01/app/oracle/product/8.1.5/precomp/demo/proc'
    make: *** [sample1] Error 2
    [oracle@skinner proc]$
    ---- cut ----
    I can see from previous threads that others have gotten PRO*C to
    work, but I didn't see anything specifically about this
    problem. Will someone please tell me what I'm doing wrong?
    Making the sample PRO*C programs has always been a simple matter
    on other UNIX machines. I suspect that Oracle's default install
    is assuming libc instead of glibc, but I'm not familiar enough
    with Linux to fix this.
    I am running RedHat 6.0 with all of updates applicable to my
    system applied.
    null

    This was better.
    http://govt.oracle.com/~tkyte/proc_makefile/
    Thanks for the first step.
    I drove myself up the wall for 3 days.
    -Anand Vadul.
    John Smiley (guest) wrote:
    : OK, I've made some progress. I am now able to compile the
    : sample programs. I took the following actions:
    : 1. set up $ORACLE_HOME/precomp/admin/pcscfg.cfg per the readme
    : file (missed this on the first round.)
    : 2. Added
    : define=_STDIO_H
    : define=_STRING_H
    : define=_STDLIB_H
    : to the standard pcscfg.cfg
    : 3. Added
    : #define size_t unsigned int
    : to each sampleX.pc file to avoid segmentation fault (core
    dump).
    : Now I have another question. Why were steps 2 and 3 necessary
    : (step 1 was my fault)? Has anyone else out there solved this
    : problem a different (better) way?
    : John Smiley (guest) wrote:
    : : I'm fairly new to Linux but not to Oracle. I am trying to
    : : compile the sample PRO*C programs and running into
    : difficulty.
    : : The first problem I had was that $ORACLE_HOME/bin/proc was
    not
    : : installed with execute permissions (strange that the OUI
    : didn't
    : : set the permisssions properly; I checked the root.sh file,
    but
    : : nothing was there for proc).
    : : After setting execute permissions (chmod +x proc), I ran the
    : : following from $ORACLE_HOME/precomp/demo/proc
    : : ---- cut ----
    : : [oracle@skinner proc]$ make -f demo_proc.mk sample1
    : : gmake -
    : : f
    /u01/app/oracle/product/8.1.5/precomp/demo/proc/demo_proc.mk
    : : OBJS=sample1.o EXE=sample1 build
    : : gmake[1]: Entering directory
    : : `/u01/app/oracle/product/8.1.5/precomp/demo/proc'
    : : proc iname=sample1
    : : Pro*C/C++: Release 8.1.5.0.0 - Production on Sun Aug 15
    : 15:05:47
    : : 1999
    : : (c) Copyright 1999 Oracle Corporation. All rights reserved.
    : : System default option values taken
    : : from: /u01/app/oracle/product/8.1.5/precomp/admin/pcscfg.cfg
    : : Error at line 33, column 11 in file /usr/include/stdio.h
    : : # include <stddef.h>
    : : ..........1
    : : PCC-S-02015, unable to open include file
    : : Error at line 38, column 11 in file /usr/include/stdio.h
    : : # include <stdarg.h>
    : : ..........1
    : : PCC-S-02015, unable to open include file
    : : Error at line 29, column 10 in file /usr/include/bits/types.h
    : : #include <stddef.h>
    : : .........1
    : : PCC-S-02015, unable to open include file
    : : Error at line 14, column 10 in file /usr/include/_G_config.h
    : : #include <stddef.h>
    : : .........1
    : : PCC-S-02015, unable to open include file
    : : Error at line 48, column 11 in file /usr/include/libio.h
    : : # include <stdarg.h>
    : : ..........1
    : : PCC-S-02015, unable to open include file
    : : gmake[1]: *** [sample1.o] Segmentation fault (core dumped)
    : : gmake[1]: Leaving directory
    : : `/u01/app/oracle/product/8.1.5/precomp/demo/proc'
    : : make: *** [sample1] Error 2
    : : [oracle@skinner proc]$
    : : ---- cut ----
    : : I can see from previous threads that others have gotten PRO*C
    : to
    : : work, but I didn't see anything specifically about this
    : : problem. Will someone please tell me what I'm doing wrong?
    : : Making the sample PRO*C programs has always been a simple
    : matter
    : : on other UNIX machines. I suspect that Oracle's default
    : install
    : : is assuming libc instead of glibc, but I'm not familiar
    enough
    : : with Linux to fix this.
    : : I am running RedHat 6.0 with all of updates applicable to my
    : : system applied.
    null

  • Environnement with pro-cobol and linux redhat

    Hi,
    I have a linux redhat Linux 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
    and oracle 11g database where we have installed Pro-cobol with a launcher xframe ( not me !)
    we want to use command-line with pro-cobol :
    exemples :
    export COBOLOPTS="-dy -shared -M -lxconv -L$XFRAMEHOME/lib -I $PWD -WC,""DLOAD"" -WC,""SOURCE"" -WC,""COPY"" -WC,""XREF"" -WC,""FLAG(E)"" -WC,""MODE(STD)"" -WC,""ALPHAL(WORD)"" -WC,""NOTRUNC"" -WC,""NOSDS"" -WC,""SRF(FIX)"" -WC,""MAP"" -do ./ -dp ./ "
    cobol -o OV1SLSP.e OV1SLSP.pre OV1MADR0.o $ORACLE_HOME/precomp/lib/cobsqlintf.o OV1MADR1.pre.o OV1MSNT0.pre.o 2> OV1SLSP.errors
    execution:
    OV1SLSP.e
    results
    Erreur de segmentation
    we have a this error.
    but when we use xframe launcher :
    execution:
    xrun OV1SLSP
    results
    XRUN: STARTING OV1SLSP
    OV1MADR0 PLANTAGE SQL RNVP : -1012
    SQLERRMC ORA-01012: non connecté
    COBOL:rts: HALT: JMP0015I-U [PID:000004A0 TID:B7FFC940] CANNOT CALL PROGRAM 'COBCANC'. xvsamRts: undefined symbol: COBCANC PGM=OV1MADR0
    XRUN: TERMINATED WITH CODE 134
    =>This message is normal because we have connect to database !
    It's working perfect.
    My question is : what is the correct librairies to have to make static compiling pro-cobol's programs?
    hope to be cleared.
    Thanks.
    Edited by: french_dam on 28 janv. 2011 10:07
    Edited by: french_dam on 28 janv. 2011 10:11

    Have you checked the system requirements for using Pro-Cobol with Oracle 11g and Linux? See here:
    Pro*COBOL® Programmer's Guide 11g Release 1 (11.1)
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28428/pcoabops.htm#insertedID1
    Hope this helps,
    Ben

  • Pro*COBOL not getting instaled on Fedora 14

    Hi,
    I have installed Oracle 11gr2 on Fedora 14 x86_64 system,. But the Pro*COBOL pre compiler which automatically comes with Oracle is not getting installed (Instead Proc is available. I dont know why). I have the entire application coded in embeded SQL-COBOL programs. I am stuck here, unable to preprocess my programs.
    Please suggest me the procedure to resolve. Thanks in advance.
    Note: In "Advanced Install" option I could not find "custom instal"l or a provision to select "precompilers" but other DBA related things found
    Venkatesh Kudire
    [email protected]

    David,
    Can you try passing in the 1.5 VM location manually as listed below
    WorkshopInstaller.exe LAX_VM d:\bea\9server\jdk150_04\bin\java.exe
    Can you also make sure that the 1.5 JVM value entry is the first entry in the PATH environment variable.
    cheers
    Raj

  • Error: Writing LOB with Pro*COBOL

    Hi,
    I'm trying to write an Oracle CLOB object using a COBOL application and Pro*COBOL. The following code is quite similar to the Oracle Documentation Example. However, I would always get the fatal error
    Attempt to access item beyond bounds of memory (Signal 10)
    Here's my code (erased the EXEC SQL...END-EXEC for readability):
    ALLOCATE :WC-MESSAGE-TXT
    SELECT MESSAGE INTO :WC-MESSAGE-TXT
    FROM T_MESSAGE
    WHERE ID = :WV-ID
    FOR UPDATE
    LOB WRITE :WC-MESSAGE-LEN
    FROM :WV-MESSAGE
    INTO :WC-MESSAGE-TXT
    FREE :WC-MESSAGE-TXT
    Can anyone help, please!
    Thanks, Ulf

    Have you checked the system requirements for using Pro-Cobol with Oracle 11g and Linux? See here:
    Pro*COBOL® Programmer's Guide 11g Release 1 (11.1)
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28428/pcoabops.htm#insertedID1
    Hope this helps,
    Ben

  • Can't compile old Cobol Programs with Oracle9i Pro*Cobol.

    I'm a Cobol and Oracle greenhorn - so please apologise my question.
    Here are the details:
    We want to switch our db from
    Oracle8i Enterprise Edition Release 8.1.7.0.0
    to
    Oracle9i Enterprise Edition Release 9.2.0.4.0
    If I have the "Oracle 8i client" installed on my developing system (using procob precompiler) my program compiles without problems. Connecting to our old 8i db works fine.
    On connecting to our new 9i db my program crashes on the first EXEC SQL statement with:
    114 Attempt to access item beyond bounds of memory
    So I have installed the "Oracle 9i client" to use the new precompiler
    Pro*COBOL: Release 9.2.0.1.0
    BUT now I can't execute my program because procob inserts some CALL "ORASQL8" which doesn't exist in my Oracle installation. Maybe ORASQL9 would work, because there are some files with this name in my Oracle dir.
    How can I make my NET Express Version 3.1.11 Service Pack 1 work together with Oracle9i?
    Here are my current (old) Precompilersettings from the file cobol.dir:
    p(cobsql) csqlt=ora8 cbl2ora8 sqldebug end-c ireclen=132 oreclen=132 maxliteral=160 picx=varchar2 p(cp) sy endp copyext (pco,cbl,cpy,cob) osext(pco);
    This forum is my last resort. Maybe anyone can help?
    Thanks in advance
    lual

    ...solved by myself.
    After wasting a lot of time, i've found a quick and dirty solution...
    C:\oracle9i\bin\ORASQL9.DLL
    duplicated and renamed to ORASQL8.DLL
    C:\oracle9i\precomp\lib\msvc\oraSQL9.LIB
    duplicated and renamed to oraSQL8.LIB
    C:\oracle9i\precomp\lib\orasql9.lib
    duplicated and renamed to orasql8.lib
    ...now my old programs run again without errors.
    lual

  • Pro*Cobol  compilation error

    Hi all,
    We have two Identical servers DEV1 and PROD1 with same SunOS and Oracle Db versions.
    Then we have a pro*cobol program "prog1" which compile clean at DEV1, but when copied to PROD1 and compiled it does not
    go clean compile.
    Can you help me how to troubleshoot this problem please.
    Is there a bug in Oracle pro*cobol that I may not be aware of?
    How do I compare the pro*cobol version of the 2 servers?
    I also tried to check the server OS versions:
    @DEV1
    uname -a
    SunOS DEV1 5.10 Generic_144488-12 sun4v sparc SUNW,T5440
    @PROD1
    uname -a
    SunOS PROD1 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V440Are our OS in sync?
    MF cobol version:
    check cobrun:
    DEV1 MF Cobol Version:
    V5.1 revision 0 build 10/10/2 G; 07109. Run Time System RXCTI/AA0/00000Q.
    DEV2 MF Cobol Version:
    V5.1 revision 0 build 10/10/2 G; 07209. Run Time System RXCTI/AA0/00000QIs our cobol compiler in sync?
    Thanks a lot,
    Edited by: KinsaKaUy? on 16-Sep-2011 02:44

    What kind of error it throw ??
    Are both server have similar hardware configuration??
    Thanks
    Cheeta

  • Problems with Pro*Cobol on 10g

    Hi ,
    We are trying to migrate from 9i to 10g. We were using pro*cobol 1.8. Now we are facing many problems while compiling and running these programs on Pro*COBOL: Release 10.2.0.2.0.
    Are there any migration guides available which might have the specific changes to be done.
    Thanks
    Akhila

    Hi 985004,
    This forum if for Web Services. I think you would have more luck posting to the APEX forum:
    Oracle Application Express (APEX)
    Regards Peter

  • Pro*COBOL precomp and .pco demos not installed

    Hi,
    I am new to the Oracle database.
    Installing Oracle 9.2, Standard Edition - downloaded Disk1, Disk2 and Disk3 for Windows NT/2000/XP from the OTN downloads.
    I have COBOL programmes with embedded SQL - I need the Pro*COBOL precompiler (procob).
    It seems like Pro*COBOL did not get installed and I do not have the \procob\ demos folder under %ORACLE_HOME%\precomp\demo\. In fact, the only folder in the \demo\ folder is \sql\.
    I have tried compiling my own COBOL programs, which use the COBSQL preprocessor to call the Oracle procob precompiler. I get the error message:
    * CSQL-I-018: Invoking ORACLE8 Precompiler/Translator
    'procob' is not recognized as an internal or external command,
    operable program or batch file.
    * CSQL-F-021: Precompiler did not complete -- Terminating
    Are Pro*COBOL precompiler and the procob demos installed with the download version of Oracle 9.2? Where can I get them from?
    Many thanks

    Hi, me again.
    The procob demos are not installed by default -- Standard installation.
    With a Custom installation, Pro*COBOL is found under 'Oracle 9i Development Kit 9.x > Oracle Programmer 9.x > Optional Dependencies'. You have to check the box 'Show all components including required dependencies' on the Custom install dialog to be able to expand the components and see the Pro*COBOL precompiler under Optional Dependencies.
    I will get to testing the procob demos now and post back the success/failure of the Pro*COBOL precompiler installation.

  • Unable to locate the Pro Cobol Compiler

    I'm installed Oracle 9i client using Oracle 9.2.0.2.0 for HP-UX.
    The Pro Cobol compiler is not present in any of the installation options.
    Where can I download Oracle Pro Cobol compiler for Oracle 9.2.0.2.0 for HP-UX?
    G-

    after some research I found out that the Pro Cobol compiler is not available on the HP Itanium for version 9.2.0.1, 9.2.0.2 and 9.2.0.3. I will not be available until 9.2.0.4 or later per Oracle on Metalink

  • Nigpib-linux driver compile problem

    I am running SUSE 9.0, and while trying to install nigpib-linux-0.8.6.tar.gz, I get the following compile error:
    Your kernel appears to be configured properly to build NI-GPIB for Linux.
    Do you want to proceed? [yn] y
    gcc -c -O2 -D__KERNEL__ -I/lib/modules/2.4.21-260-default/build/include -DMODULE -DMODVERSIONS -include /lib/modules/2.4.21-260-default/build/include/linux/modversions.h -D__GPIBDRIVER__ -o ib_linux-2.4.21-260-default.o ib_linux.c
    ib_linux.c:419:7: missing binary operator before token "("
    make: *** [ib_linux-2.4.21-260-default.o] Error 1
    Couldn't build driver.
    It has to do with the HZ definition.
    Thanks for any help anyone can give!

    dsb,
    Here is a link to a lengthy thread on this very problem. There appears to be a workaround or two mentioned in the post:
    Linux Driver Compiling Problem
    Let me know if the suggestions in that thread help out!
    Craig H.
    NI Applications Engineering

  • How to use Pro*COBOL with RMCobol

    Hi,
    I try use Pro*Cobol with RMCobol compiler.
    But I have problem to use oraSQL9.LIB y with runcobol (runtime).
    Thank for any help.

    I try use Pro*Cobol with RMCobol compiler.
    But I have problem to use oraSQL9.LIB y with runcobol
    (runtime).You will be able to do it with the new version of RM.
    This is due very soon, and you will need the new compiler, the new runtime, and a small C wrapper that I supply to be able to do it.
    If you already have Version 7 of the runtime you can also use OCI call's as of now, this also with a C wrapper I supply (this for windows, UnixWare 7.xx, OpenUnix8, and Linux (redhat at the moment, should work with most of others).
    I can be contacted at [email protected]
    regards
    Frederico Fonseca

  • Compiling an old linux code on a new mac

    Hello,
    I am trying to compile an old Linux program on my new macbook pro (Intel + 10.6). The program uses a mix of fortran and c source codes. On the Linux environment where it works I have gcc(f77) 3.2.3 installed.
    The only external library called for in the Makefile is libg2c, which as far as I can tell comes with gcc 3 but not any longer in gcc 4. This means that the original Makefile, which works on a Linux environment with gcc 3.2.3 does not work on my Mac.
    For sure I need some g2c-like library because the system is mixing Fortran and C code, and doesn't compile if I just remove -lg2c from the Makefile, the compiling crashes.
    I have tried to install libf2c from Fink but it doesn't seem compatible with gfortran created code.
    Now I'm a bit lost. Can someone offer some help?

    atticus_pf wrote:
    You keep saying gcc4.4 is bad.
    There is nothing inherently wrong with gcc4.4. I just don't trust anything that comes from the Mac "ports" packages. Why would I need to "port" something to MacOS X if it build fine from a tarball? More importantly, why would I use a version newer than what Apple ships with the OS? MacOS X is not Linux. Those newer versions have not been tested and MacOS X and MacOS X is fundamentally different from any OS that those versions have been tested on. If you want to test new software on Mac OS X, that's great. Just get the original code and build it yourself instead of going through a 3rd party who may or may not know what they are doing. Every time I see a problem here in Apple Discussions with someone who can't build an open-source software package on MacOS X, some "ports" package has been installed. Every Time.
    What is the best version to use? I have gcc in /usr/bin which is gcc 4.2.1 - I think this is the apple version. ... I just want to use what is best and most reliable.
    That would be the one Apple build the OS with. Even then, gcc 4.2.1 is still a bit flaky on MacOS X. Apple may never use gcc 4.4. It is moving towards Clang for future development.
    gcc -framework Carbon -arch i386 -m64 -g -I/Users/jpfaendt/Modeling/parest/ddasac/software/include -O2 -o parest ./model.o jacobian.o bsub.o -L/Users/jpfaendt/Modeling/parest/ddasac/software -L/Users/jpfaendt/Modeling/parest/ddasac/software/myUtil -L/Users/jpfaendt/Modeling/parest/ddasac/software/lib -L/sw/lib/gcc4.4/lib -lm -lliqparest -ldassl -lgregpack -lgfortran -lUtil -L/sw/lib/gcc4.4/lib/
    Undefined symbols:
    "_Delete", referenced from:
    _ModelODEs in model.o
    sorry for the messy paste, it's an ugly makefile (although it works in linux). You can see I'm including libraries that I myself compiled (libliqparest, libdassl, libgregpack, libUtil are all compiled in this code).
    But what is that "-m64" doing there? That is not a good flag to use even in the best of times. It really isn't appropriate with "-arch i386". Add to that the fact that Carbon isn't 32-bit and you've got a mess-o-problems.
    The first function that has a problem above (_Delete) is defined in a c program that is compiled as part of libUtil.a. This library just has a bunch of house-made functions for vector handling, etc. The code could be probably be overhauled to not need this anymore but I don't have the energy to do it.
    I really think these are old relics of a MacOS port back when you needed such "ports" because MacOS (note the absence of "X") didn't have such things as open(), malloc(), and free().
    You have the source to libUtil.a, so it would be worthwhile to look at it and see if my hypothesis is correct. You may be able to fix it with just a compiler flag and have it use the POSIX code instead of the MacOS Carbon routines. Then, hopefully, you can get rid of Carbon altogether and build a true 64-bit executable.
    In any case, I'm now suspecting my compiler configuration, etc for causing the problems. What is the best solution for having the fink gcc-4 installed and apples gcc installed? I guess I have to reconcile this somehow with the gfortran that is in /sw/bin.
    You could also download a better version of gfortran that installs into /usr/local, where it is supposed to be.

Maybe you are looking for

  • Help. Why can't I move an iPhoto library to another Mac.

    Help. This should be a simple thing to do but I can't make it work.  While on vacation in Europe, I created a new iPhoto library on my MacBook Pro for my son to load his photos into - all worked well, his library is 1.44 Gbytes. We live in different

  • How do I get my Exchange "home" addresses to show up in Contacts?

    I synch my iPhone contacts from my work Exchange Server.  Ever since I upgraded to IOS7, I cannot see any "home" addresses for my contacts.  All I can see is "work" addresses for each contact.  All phone numbers and e-mails are fine.  It's only cause

  • How to get login of currently logged in user in OIM?

    Hi, I am developing JSP in OIM and I would like to obtain data of currently logged in user*, it is possible through getSelfProfile() method ( tcUserOperationsIntf ), so far I have written the following code: tcResultSet loggedUser = null; tcUtilityFa

  • SC with awaiting approval status and no work item for Approvers.

    Hi Experts, We are implementing Classic scenario with SRM7.0 and we are having Application controled Workflow. We are fasing issue in workflow. On SC getting ordered the status is showing as awaiting approval and there is no work item found in BBP_PD

  • RE: (forte-users) URL-based Config Info

    You can use xml over http to pass information between Forte and Java. You can use httpdc/httpsupport(Forte3.5) library to send and receive using http in Forte and use servlets in java. ka -----Original Message----- From: Lapeyre, Michael [mailto:Mike