Pro C, Pro COBOL

Pro C, Pro COBOL

Post by Davi » Tue, 14 Mar 1995 00:41:37



Could anyone inform me as to what these two languages are and how they
relate to ORACLE database systems development. Also how do they differ from
'c' and COBOL.

Thanks


--
David

 
 
 

Pro C, Pro COBOL

Post by Ron Ro » Wed, 15 Mar 1995 08:44:16


: Could anyone inform me as to what these two languages are and how they
: relate to ORACLE database systems development. Also how do they differ from
: 'c' and COBOL.

    Pro*C and Pro*COBOL are not languages.  They are pre-compilers.  What
they do is take embedded SQL statements and translate them into calls to
library routines.  This is to allow access to an Oracle database from these
languages.

--
           ___  Oo            .:/
          (___)o_o         ,,///;,   ,;/
     //====--//(_)        o:::::::;;///         Ron Ross          

                           ''\\\\\'" ';\        I'd rather be diving !!!

 
 
 

Pro C, Pro COBOL

Post by Tony Bra » Fri, 17 Mar 1995 05:17:09


Hi David

Pro*C and Pro*Cobol are ORACLE's "pre-compiler" languages.
They are "pre-compilers" because they "compile" embedded SQL
statements into "true" C or COBOL code so that you can then
use the normal C or COBOL compilers.

It's supposed to be simpler than using the low-level (function)
call interface.  A Pro*C source might look like this:

main ()
{
 EXEC BEGIN DECLARE SECTION;
   employee_name CHAR[21];
 EXEC END DECLARE SECTION;

 EXEC SQL SELECT ename INTO employee_name FROM EMP
          WHERE empid = 1234;

 printf ("\nName=%s", employee_name);

Quote:}

The PRO*C precompiler would convert the statements beginning
with EXEC to C code so you can compile with a standard C
compiler.

Tony Bravo


>Could anyone inform me as to what these two languages are and how they
>relate to ORACLE database systems development. Also how do they differ from
>'c' and COBOL.
>Thanks

>--
>David

--
__________________________________________________________________________

                                  2361 Rosecrans Ave, El Segundo, CA 90245
                                       Tel: 310-297-3804 FAX: 310-297-3900
 
 
 

Pro C, Pro COBOL

Post by Michael Vann » Thu, 16 Mar 1995 17:58:02




>Subject: Pro C, Pro COBOL
>Date: Sun, 12 Mar 1995 15:41:37 +0000
>Could anyone inform me as to what these two languages are and how they
>relate to ORACLE database systems development. Also how do they differ from
>'c' and COBOL.
>Thanks

>--
>David

Pro*C and Pro*Cobol are the Oracle precompilers to convert embedded SQL to
host language statements (that is C or Cobol code) for the actual compiler.
Michael
 
 
 

1. Copying Pro*C/Pro*Cobol instead of installing..?

I have a production and a development machine (both DEC 5500
running Risc Ultrix and Oracle 6.0.34) and I have Pro*C and
Pro*Cobol installed on one but not the other.

We have a licence to have the precompilers on both machines, and
now we need them on both. I was hoping to be able to just copy
/usr/local/oracle/c and /usr/local/oracle/cobol from one machine
to another. Is this a waste of time? Am I going to miss out on
lots of other things I need?

I know about the /usr/local/oracle/bin/pcc and /usr/local/oracle/
rdbms/lib/libpro.a files. Are there others?

Also, will I miss out on essential relinking procedures or changes
to the database or somesuch by "installing" via copying?

I'm also hoping to move the Microfocus Cobol product across in the
same way.

Comments?

---------------------------------------------------------------
Janene Carey, Computing Services, University of New England,

Phone: +61 67 73 2287 Fax: +61 67 73 3272
       Any views expressed are mine own hard won ones
---------------------------------------------------------------

2. Want To Buy: A2000 internal HD floppy

3. Pro-c, Pro-Cobol

4. IRC chat for Embedded?

5. Which Cobol's work with Pro-Cobol?

6. SM124 Diminishing Screen

7. Pro*COBOL and RM/COBOL-85

8. Announcing The Agile Life - a free ezine on the human side of software development

9. Problem: Pro*Cobol-Microfocus Cobol

10. PRO*COBOL support for LPI COBOL compiler under ORACLE 7.2

11. Pro*COBOL & Microfocus ANIMATOR

12. Pro*C/Cobol pgm file sizes under 6.0.34