PRO*COBOL/Oracle 9.2 Error

I am trying to run a COBOL program using SQL. The program is pre-compiled with PRO*COBOL and the then with Microfocus NET Express. At runtime i get the following error.
$ ./testsample
Execution error : file 'sample1'
error code: 114, pc=0, call=1, seg=0
114 Attempt to access item beyond bounds of memory (Signal 10)
HP/MF COBOL Version: B.13.45
HP-UX hptest B.11.11 U 9000/800
pid: 22012 gid: 102 uid: 104
Thu Nov 21 19:03:12 2002
7:03pm up 36 days, 6:23, 34 users, load average: 0.28, 0.16, 0.13
Thread mode: No Threads
RTS Error: COBOL
Sync Signals: COBOL
ASync Signals: COBOL
cobtidy on exception: False
I get the same error with the sample program. Any idea what the cause may be?

Hello,
Reason: Your data might contain some foreign characters [non-english] ie., your server nls_lang settings might be different to the client nls_lang settings, as a result the new nls_lang characters will occupy extra bytes because of which even though it is apparent that you are using around 2000 bytes you may be using more than 4000 bytes. Examples Japanese characters seem to take 2 bytes per character, similarly russian takes 3 bytes per character.
The ojdbc14.jar seems to be doing some check on this and if the characters are more than 4000 bytes it gives u the ora-01461 error but the new 10G ojdbc14.jar allows this.
On the other hand you may be genuinely trying to insert more than 4000 bytes characters into varchar [example trying to insert the text values into a varchar()]
You may want to try this:
* Please download ojdbc14.jar from
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.htmla>
* Replace the old $omwb_home/lib/ojdbc14.jar with the ojdbc14.jar that you have downloaded in the step above.
Try a capture now.
Thank you.
Srinivas

Similar Messages

  • PRO*COBOL Oracle 9.2

    I am trying to run a COBOL program using SQL. The program is pre-compiled with PRO*COBOL and the then with Microfocus NET Express. At runtime i get the following error.
    $ ./testsample
    Execution error : file 'sample1'
    error code: 114, pc=0, call=1, seg=0
    114 Attempt to access item beyond bounds of memory (Signal 10)
    HP/MF COBOL Version: B.13.45
    HP-UX hptest B.11.11 U 9000/800
    pid: 22012 gid: 102 uid: 104
    Thu Nov 21 19:03:12 2002
    7:03pm up 36 days, 6:23, 34 users, load average: 0.28, 0.16, 0.13
    Thread mode: No Threads
    RTS Error: COBOL
    Sync Signals: COBOL
    ASync Signals: COBOL
    cobtidy on exception: False
    I get the same error with the sample program. Any idea what the cause may be?

    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

  • PRO * COBOL with Oracle 9i

    We are in the process of Database upgrades and a pro*cobol program which was working in HP UX 11 / Oracle 7.3.4 was not working in HP UX 11 / Oracle 9i. We are getting the following error when trying to compile it (make) -
    sh: 11139 Memory fault(coredump)
    *** Error exit code 139
    Can anybody help me with this issue.

    I posted this in the wrong place. Please ignore this.

  • 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

  • NVL2 in pro cobol giving the error.

    For some reason we are getting an compiler error when we use NVL2 function in embedded sql statement in a pro-cobol module. Here is the output from the compiler. Do we have to add any options to recognize the new functions/keywords?
    procob iname=vas107h2.pco include=/oracle/home/product/9.2.0/precomp/public ireclen=132 oreclen=132 sqlcheck=full ltype=none
    " PICX=VARCHAR2 include=/jsbatch/vista/dev/cobol/cpy
    Pro*COBOL: Release 9.2.0.7.0 - Production on Tue Oct 31 13:49:35 2006
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    System default option values taken from: /oracle/home/product/9.2.0/precomp/admin/pcbcfg.cfg
    Error at line 595, column 12 in file vas107h2.pco
    EXEC SQL DECLARE DRIVER CURSOR FOR
    ...........1
    PCB-S-00576, PLS-201: identifier 'NVL2' must be declared
    Error at line 595, column 12 in file vas107h2.pco
    EXEC SQL DECLARE DRIVER CURSOR FOR
    ...........1
    PCB-S-00576, PLS-0: SQL Statement ignored
    *** Error code 1
    make: Fatal error: Command failed for target `vas107h2'
    Thanks,

    I'm not familiar with Pro*Cobol, but there's a similar issue with Pro*C, the parser does not recognize this built-in function. Given workaround is:
    1) Use NVL() instead of NVL2().
    2) Use Dynamic Sql in Pro*C. For example:
    EXEC SQL EXECUTE
    declare
    v_var varchar2(100);
    BEGIN
    execute immediate 'select nvl2(user, user, 'N/A') from dual' into v_var;
    END;
    END-EXEC;
    If that doesn't help, you should contact Oracle support.
    Werner

  • Oracle 9i and Pro*Cobol

    We are in the process of Database upgrades and a pro*cobol program which was working in HP UX 11 / Oracle 7.3.4 was not working in HP UX 11 / Oracle 9i. We are getting the following error when trying to compile it (make) -
    sh: 11139 Memory fault(coredump)
    *** Error exit code 139
    Can anybody help me with this issue.

    We are able to fix this core dump problem. There were some extra "tabs" in the program, when removed the program compiled perfect.

  • Where can I download PRO*COBOL for Oracle database 11g ?

    Where can I download PRO*COBOL for Oracle database 11g ? I have downloaded & installed linux.x64_11gR1_database_1013.zip
    It has a procob32 but it gives an ERROR loading shared library libcIntsh.so.11.1 ?
    What should pro*cobol be for my linux 64 bit AMD ? (procob procob32, procob18, procob64)
    Hope somebody can help with this, Thanks, [email protected] www.uvsoftware.ca

    This is not the appropriate forum to post this.
    Kindly post it in the Database General Forum or search in the download section.
    Regards.
    Satyaki De.

  • 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

  • Pro*Cobol for Oracle 10g Express Edition is available?

    Hi to all, this is my first post here.
    I evaluating Cobol to Oracle products and I have find one it´s more
    We installed Oracle 10g Express Edition (Server and Client), to test compatibility of a Cobol product.
    This product requires the "rtsora" component, from Pro*Cobol, but we didn´t find it in any place in the instalation packages.
    The documentation show the precompilers to be at $ORACLE_HOME/precomp but there is only two folders (admin and lib) with "ottcfg" files. Nothing more
    Searching this and anothers foruns, I became to think if the precompilers facilities, like Pro*Cobol, may be available to the 10g Express Edition for Linux, OR, if this is a feature available only to the Standart Editions (or Windows)?
    The instalation and users manuals appears to don´t distinguish the 10g standart from the Express Edition. Also, the Express Edition doesn´t ask for any kind of "customization oprtions" as I read about in another topics.
    Edited:
    1 - We are using this on Linux Ubuntu.
    2 - The Windows 10g Express Edition appears to be more complete, but I need to run this on Express Edition.
    Thanks in advance!
    (sorry bad english)

    There is no official communication on 11G express edition release date .
    You will have to wait and watch Oracle Official website for that .
    Also check this :
    http://news.techworld.com/applications/3203909/oracle-stalls-over-11g-express-release/
    http://pcworld.about.com/od/businesscenter/Oracle-Mum-on-11g-Release-2-1.htm
    Regards
    Rajesh

  • Does Oracle intent to maintain the Pro*Cobol in the market?

    With the new power languages like java, the Pro*Cobol segment will survive in news releases?

    HI
    It will still support Cobol in order to cater to the clients who are still in mainframe systems and those clients who have their legacy systems in Cobol.
    Regards,
    Bibs

  • Using WITH clause in Pro*Cobol

    Hi!
    I am trying to improve the performance of a query by introducing WITH clause.
    The query is in Pro*Cobol Release 9.2.0.6.0 - Production.
    I got compilation error
    WITH DPTCOST AS (
    ...............1
    PCB-S-00400, Encountered the symbol "DPTCOST" when expecting one of the following:
    END-EXEC
    ....continued
    So I wonder if we could use that clause at all with Pro*Cobol
    Here is the excerp of the code
    EXEC SQL
    DECLARE INPUT_ACTUAL CURSOR FOR
    WITH DPTCOST AS (
    SELECT /*+ rule */
    A.CODE_COMBINATION_ID,
    A.SEGMENT1, A.SEGMENT2, A.SEGMENT3,
    A.SEGMENT6,
    D.COSTING, D.PROCESS,
    D.MTL_CODE, D.FACTOR
    FROM
    GL_CODE_COMBINATION A,
    ALCGL_DEPARTMENT_COSTINGS D
    WHERE
    A.TEMPLATE_ID IS NULL
    AND A.SUMMARY_FLAG <> 'Y'
    AND A.SEGMENT1 = D.PLANT_NUMBER
    AND A.SEGMENT3 <> '6999001'
    AND A.SEGMENT3 <> '6999002'
    AND SUBSTR(A.SEGMENT2,4,3) = D.DEPARTMENT
    AND D.ACTUAL_FLAG = 'A'
    ) ... continued

    Materialized views are basically stored query results. They offer advanced functionality like query rewrite, refresh on commit, and more;
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_6002.htm
    Unlike a view, they actually store the results of the query - not just the query;
    SQL> create table t (cid number primary key)
    Table created.
    SQL> insert into t select object_id from dba_objects where object_id is not null
    12791 rows created.
    SQL> create materialized view mv
       as select * from t
    Snapshot created.
    SQL> select object_name, object_type from user_objects where object_name ='MV'
    OBJECT_NAME                    OBJECT_TYPE       
    MV                             TABLE             
    MV                             MATERIALIZED VIEW 
    2 rows selected.
    SQL> select segment_name, bytes from user_segments where segment_name in ('T', 'MV')
    SEGMENT_NAME                        BYTES
    T                                  196608
    MV                                 196608
    2 rows selected.Temporary tables are simply tables that are created then dropped. GLOBAL TEMPORARY TABLES have the advantage (or disadvantage) of only existing until commit or the end of the session. They results are visible to the user that inserted the data - but only temporarily;
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#sthref7483

  • Enbedding PL/SQL function in Pro Cobol

    HI,
    I am trying to compile an existing pro cobol program because of a small enhancement. I am trying to embed a pl/sql function in to the program..and the compiler is throwing errors.Can someone please tell me what i am doing wrong? Please look at the piece of code that i added to the existing program.I have set the Oracle option sqlcheck = semantic...
    exec sql execute
    BEGIN
    finddatatype(:ws-destination-tbl1,
    :ws-destination-tbl-col-1,
    :ws-data-type);
    END;
    end-exec
    null

    It's been a while since I used Pro*C but I think sqlcheck should be set to FULL not SEMANTICS for embedded PL/SQL.
    Maybe this is the same for Pro*Cobol?

  • 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

  • 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 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.

Maybe you are looking for

  • Loops appear twice in the loop browser. Huh?

    I just installed iLife '06 and have been "messing around" with the various programmes. One thing I noticed was that exactly the same loops appear twice in the loop browser. Not all loops are doubled, which is obviously what is confusing me. Is this n

  • Adobe Media Encoder Rendering Issues

    Ok so I am using Adobe Media Encoder version 7.2.2.29. I have been having issues with encoder for awhile now. When I go to queue my videos the encoder doesn't render the file correctly either it be like the example below where a simple imported logo

  • I unlocked my iPhone 5 and its still say sim invalid

    I Unlocked my iPhone 5 to tmobile and I put my SIM card  and it says sim not valid,

  • WLC and LDAP

    Hi to all, i want to use local-eap+LDAP (microsoft AD) and i'm experiencing some issue. First of all i'm not able to bind WLC and LDAP...if a perform a debug aaa ldap enable i get this output: Any idea about how to solve this issue? Regards Ale

  • Upgrading from 10.4.11 'Tiger' to Leopard

    Hi, I have a mac running on 10.4.11 and someone bought my daughter 'iLife 09' as a Christmas Present but we cannot install it unless we have Leopard Software. Is there anyway to 'upgrade' to Leopard without having to go out and buy a whole new Snow L