Pro*cobol precompiler
Hi!
I am intending to learn how to use an application write in COBOL work thruout the Oracle and then I downloaded Oracle 9i database (9.2.0.1.0) and I installed it on my PC. When I used the sample code file named "sample1" and I executed it by the .bat "makeit", where there is a component called "cobol", I saw that this component is not in anywhere of my PC and, naturally, my sample1 did not work. Could anyone please tell me where I find the cobol component to download it?
Thankful.
Hi! Hans:
Actually, I have the three CDs and I am going to add the precompilers by the custom install as you suggest, but I do not understand and I am very confused...After completing the Oracle 9i Database installation, with Disk 1, I was able to see, on the tree view of universal installer dialog box all of the installed products and their respectively items and one of them I saw is just so the Precompiler Common Files, therefor I thought the sample1 file would work...but it did not do.
Thankful.
Similar Messages
-
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 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 thanksHi, 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,
MichaelNot 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,
MichaelNot 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) -
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 -
Pro*Cobol and DBMS_OUTPUT.PUT_LINE
I am new to Pro*Cobol and had a simple question (I hope).
I have a stored proc that contains DBMS_OUTPUT.PUT_LINE stmts
and I can see those in SQLPlus (when serveroutput=on), but I do
not see them when I call it from Pro*Cobol. Is there a
precompiler setting or something I need to set?'Far as I know, you'll have to repeatedly call
dbms_output.get_line in your Pro*Cobol program to
get the server output generated by your stored procedure.
Hope that helps.
All the best
Michael -
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 is missing in 10g for win64
Hi !
The quesion is for Oracle people.
Pro*Cobol is missing in 10g for win64.
Any chances to get it ?
As a matter of fact if you precompile on HPUX (64-bit) even on 9i and edit the produced code, you can make your program work.
Regards,
SergeyAs Manish-Sharam said, if it doesn't show up, it isn't supported on your system (barring issues with AAM itself, of course). Read the system requirements.
Mylenium -
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'
) ... continuedMaterialized 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
nullIt'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? -
Problem with Pro*C Precompiler in 10gR2
To test whether my pro*c precompiler was working, I copied a sample program and tried running it through the precompiler. I am running Fedora 6 on Linux X86-64
This was what I got.
proc iname=sample1.pc ltype=long
Pro*C/C++: Release 10.2.0.1.0 - Production on Sat Aug 18 01:53:49 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
Syntax error at line 72, column 26, file /usr/include/gconv.h:
Error at line 72, column 26 in file /usr/include/gconv.h
unsigned char **, size_t *, int, int);
.........................1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 88, column 7, file /usr/include/gconv.h:
Error at line 88, column 7 in file /usr/include/gconv.h
size_t *);
......1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 97, column 6, file /usr/include/gconv.h:
Error at line 97, column 6 in file /usr/include/gconv.h
size_t *);
.....1
PCC-S-02201, Encountered the symbol "size_t" when expecting one of the following
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator,
OCIClobLocator, OCIDateTime, OCIExtProcContext, OCIInterval,
OCIRowid, OCIDate, OCINumber, OCIRaw, OCIString, register,
short, signed, sql_context, sql_cursor, static, struct,
union, unsigned, utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
The symbol "enum," was substituted for "size_t" to continue.
Syntax error at line 106, column 3, file /usr/include/gconv.h:
Error at line 106, column 3 in file /usr/include/gconv.h
__gconv_trans_fct __trans_fct;
..1
PCC-S-02201, Encountered the symbol "__gconv_trans_fct" when expecting one of th
e following:
char, const, double, enum, float, int, long, ulong_varchar,
OCIBFileLocator OCIBlobLocator, OCIClobLocator, OCIDateTime,
OCIExtProcContext, OCIInterval, OCIRowid, OCIDate, OCINumber,
OCIRaw, OCIString, short, signed, sql_context, sql_cursor,
struct, union, unsigned, utext, uvarchar, varchar, void,
volatile, a typedef name,
Syntax error at line 0, column 0, file sample1.pc:
Error at line 0, column 0 in file sample1.pc
PCC-S-02201, Encountered the symbol "<eof>" when expecting one of the following:
; : an identifier, end-exec, random_terminal
Error at line 0, column 0 in file sample1.pc
PCC-F-02102, Fatal error while doing C preprocessing
This is what I have in pcsfg.cfg
sys_include=(/build/s630/precomp/public,/usr/include,/opt/gcc33/lib64/gcc-lib/x86_64-suse-linux/3.3/include,/usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/include,/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/include,/usr/include/linux,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include)
ltype=short
define=__x86_64__
include=(/u01/app/oracle/product/10.2.0/db_1/precomp/public)
include=/u01/app/oracle/product/10.2.0/db_1/precomp/hdrs
I would be very grateful for any help.
ThanksThanks very much for your help. With code=CPP the size_t error disappears. But will that produce Pro C code in C format ?
I ran into another problem.
[oracle@Falcon source]$ proc iname=sample1.pc ltype=long code=CPP
Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Aug 19 08:33:31 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
Semantic error at line 19, column 22, file sample1.pc:
EXEC SQL CONNECT :userid;
.....................1
PCC-S-02322, found undefined identifier
Semantic error at line 25, column 23, file sample1.pc:
WHERE deptno = :dept_number;
......................1
PCC-S-02322, found undefined identifier
Semantic error at line 38, column 39, file sample1.pc:
EXEC SQL FETCH emp_cursor INTO :emp_name;
......................................1
PCC-S-02322, found undefined identifier
[oracle@Falcon source]$ vi sample1.pc
Where this is the code.
[oracle@Falcon source]$ cat sample1.pc
#include <stdio.h>
/* declare host variables */
char userid[18] = "PRODUSER/PRODUSER";
char emp_name[10];
int emp_number;
int dept_number;
char temp[32];
void sql_error();
/* include the SQL Communications Area */
#include <sqlca.h>
main()
{ emp_number = 7499;
/* handle errors */
EXEC SQL WHENEVER SQLERROR do sql_error("Oracle error");
/* connect to Oracle */
EXEC SQL CONNECT :userid;
printf("Connected.\n");
/* declare a cursor */
EXEC SQL DECLARE emp_cursor CURSOR FOR
SELECT ename
FROM emp
WHERE deptno = :dept_number;
printf("Department number? ");
gets(temp);
dept_number = atoi(temp);
/* open the cursor and identify the active set */
EXEC SQL OPEN emp_cursor;
printf("Employee Name\n");
printf("-------------\n");
/* fetch and process data in a loop
exit when no more data */
EXEC SQL WHENEVER NOT FOUND DO break;
while (1)
EXEC SQL FETCH emp_cursor INTO :emp_name;
printf("%s\n", emp_name);
EXEC SQL CLOSE emp_cursor;
EXEC SQL COMMIT WORK RELEASE;
exit(0);
void sql_error(msg)
char *msg;
char buf[500];
int buflen, msglen;
EXEC SQL WHENEVER SQLERROR CONTINUE;
EXEC SQL ROLLBACK WORK RELEASE;
buflen = sizeof (buf);
sqlglm(buf, &buflen, &msglen);
printf("%s\n", msg);
printf("%*.s\n", msglen, buf);
exit(1);
Why won't it recognize userid ? And that is a valid login/password. -
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 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 in VMS to Unix environment
Please let me know if I can use my current Pro*Cobol programs in
Unix environment. We are planning to convert our platform to
Unix. Presently I am using DCL on VMS. Thanks in advance for all
your answers
nullHI
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
Maybe you are looking for
-
How to synchronize itunes with the hard-drive's directories ?
Hi everyone, I'm new at iTunes and iPod. I'm used to put all my mp3 files in the same folder. I add every weeks some new mp3 files. How to tell to iTunes to synchronize and get the new files in the music folder ? In the same way, i try to refresh the
-
Business System of type Integration Server In SLD .
Hi Can anybody tell what is the criteria on which we decide whether a business system to be created in the sld should be of type Integration Server or Application System . And also can we have only one Business system of the type integration server
-
Process returns error code = 2
Hi, I have in my code Process p = Runtime.getRuntime().exec(cmdArray , envArray); p.waitFor() returns me 2. What does it mean. Any help ?
-
I get the following error when I try to run j2ee -verbose Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/C: \WINDOWSI just installed j2ee. These are my environmental variables set JAVA_HOME=C:\JDK1.3.1_04 set J2EE_HOME=
-
I have tried to restore my iphone as it just turned itself off and now won't restart. So I tried to restore via itunes on the computer. It could not restore my phone due to an unknown error occurring (3194), please could someone let me know what I