Pro*Cobol.. demo_procob.mk file

Hello,
I have Linux RHEL4 /Oracle 10gR2
In the oracle documentation on the net they mention that there is a .mk file (demo_procob.mk) in the $ORACLE_HOME/precomp/demo/procob/ directory, that I can use to compile my procob files.
My problem is:
The directory $ORACLE_HOME/precomp/demo/ doesn't exist on my system.
So, Can anyone post the content of this file?
Thank you very much………….

Thanks for the quick reply.
I think the examples are installed and that is the reason I see the sample1..10. I can do procob on the sample1.pco to convert it to a pure cobol pgm and then compile through microfocus server express. But I can't run it as it gave Load error: file 'sqladr'; error code 173, pc=0, call=1, seg=0 173 called program file not find in drive/directory.
Is this the right step and where can I find the sqladr and other modules?
should this be placed in the COBDIR or PATH?
Anything else I need to set?
thanks.

Similar Messages

  • 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

  • Pro COBOL / Precompile and run with Micro Focus Server Express in Unix AIX

    I have Oracle 11g R2 DB and client installed in Unix AIX machine. I would like to make a simple test pgm to :
    1. the precompile using procob on the sample program
    2. compile it through Micro Focus Server Express
    3. run the sample
    This sample pgm will just open a predefined Oracle DB, read and write a record to a table.
    I see there is a demo_procob.mk file in precomp/demo/procob2. Not sure how to use it. Any help out would be helpful.
    Thanks.

    Thanks for the quick reply.
    I think the examples are installed and that is the reason I see the sample1..10. I can do procob on the sample1.pco to convert it to a pure cobol pgm and then compile through microfocus server express. But I can't run it as it gave Load error: file 'sqladr'; error code 173, pc=0, call=1, seg=0 173 called program file not find in drive/directory.
    Is this the right step and where can I find the sqladr and other modules?
    should this be placed in the COBDIR or PATH?
    Anything else I need to set?
    thanks.

  • 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

  • Pro*Cobol on VMS

    I'm interested in embedding SQL statements in COBOL programs running on VMS. However, all of the documentation that I see mentions running Pro*Cobol on Windows or the Micro Focus COBOL compiler.
    How would I go about developing embedded SQL statements on VMS? I.e. do I have to pre-compile the files on a Windows box and then copy them over? Is this possible?
    Thanks,
    Josh

    The HOST command in Forms can only call procedures on the client that runs Forms (assuming you run Forms in client/server mode, this is the user's PC).
    If you want to run a procedure on the database host, you have to call this procedure from the database, not from Forms.
    In 8i the easiest way is to do this via a Java stored procedure:
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:952229840241

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

  • Pro*Cobol abort without information...

    Hi,
    we are using the Pro*Cobol Precompiler for embedded SQl in Cobol-Programs.
    Today I got a program abort without a helpful message (please see below).
    Is there a possibilty to get more informations from the Pro*Cobol?
    The program abort:
    Pro*COBOL: Release 10.2.0.1.0 - Production on Do Mrz 14 11:34:50 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System-Standardoptionswerte aus: /oracle/HMOT/precomp/admin/pcbcfg.cfg
    PCB-I-0556: Abbruchfehler. Vorherige Fehlerbedingungen auflösen und Vorkompilierung erneut durchführen
    It means:
    PCB-I-0556: Unrecoverable error. Fix previous errors and re-precompile
    Thanks and Regards,
    Michael

    Not the correct forum for your question - this one deals with general RDBMS questions. Not general Oracle product questions.
    Have a look at the manual and at precompiler settings. By default ERRORS=YES, which means full error listing to the terminal when compiling. If this is set to NO, you will need to look in the log file for full error details. From your description, this setting would seem to be set to NO.
    Or this is how I understand from my quick look at the Pro*COBOL® Programmer's Guide. (documentation portal at http://tahiti.oracle.com)

  • Pro*Cobol aborts without errormessage

    Hi,
    we are using the Pro*Cobol Precompiler for embedded SQl in Cobol-Programs.
    Today I got a program abort without a helpful message (please see below).
    Is there a possibilty to get more informations from the Pro*Cobol?
    The program abort:
    Pro*COBOL: Release 10.2.0.1.0 - Production on Do Mrz 14 11:34:50 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System-Standardoptionswerte aus: /oracle/HMOT/precomp/admin/pcbcfg.cfg
    PCB-I-0556: Abbruchfehler. Vorherige Fehlerbedingungen auflösen und Vorkompilierung erneut durchführen
    It means:
    PCB-I-0556: Unrecoverable error. Fix previous errors and re-precompile
    Thanks and Regards,
    Michael

    Not the correct forum for your question - this one deals with general RDBMS questions. Not general Oracle product questions.
    Have a look at the manual and at precompiler settings. By default ERRORS=YES, which means full error listing to the terminal when compiling. If this is set to NO, you will need to look in the log file for full error details. From your description, this setting would seem to be set to NO.
    Or this is how I understand from my quick look at the Pro*COBOL® Programmer's Guide. (documentation portal at http://tahiti.oracle.com)

  • 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

  • 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

  • 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

  • Where can I download the COBOL precompiler PRO*COBOL?

    Where can I find the install files for Pro*COBOL on OTN? They were available at least a year ago. I am looking specifically for procob18. Thanks in advance - please email "nguyen at uwosh.edu".

    Is your system 64 bits. If not then you wont get a download.
    Not all apps displayed for download | Creative Cloud desktop app, Adobe Application Manager 

  • Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Acrobat Distiller Server converts Postscript to PDF.

  • Can this device be used as an external hard drive with a macbook pro laptop to use files on the airport?

    can this device be used as an external hard drive with a macbook pro laptop and use files on the airport time capsule?

    If you mean an AirPort base station other than the Time Capsule, it doesn't have internal storage.
    If you mean a Time Capsule, its internal drive can be used for regular file storage but shouldn't be; as with all drives, it'll eventually fail. You're better off using a standalone drive and setting Time Machine to back it up as well.
    (112309)

  • I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac

    I want to take files from my PC (using a Seagate external hard drive) then plug this Seagate External hard drive into my Mac Book Pro and move the files from the Seagate External Hard drive onto my Time Capsule. I do not want to put these files on my Mac. How do I do this? Where do I put these files on my Time Capsule? Will it affect the functioning of my Time Capsule?

    Mixing files with data is not always great idea.
    See info here.
    Q3 http://pondini.org/TM/Time_Capsule.html
    Why not just connect the PC directly to the TC by ethernet and copy the files over?
    It is hugely faster and much less mucking around.
    In windows load the airport utility for windows.. if you have not already as this will help you access the drive.
    There is more info here.
    http://support.apple.com/kb/HT1331

Maybe you are looking for