To access an Oracle database, you use a high-level query language called Structured Query Language (SQL). You often use SQL through an interactive interface, such as SQL*Plus. Pro*COBOL is a programming tool that enables you to embed SQL statements in a COBOL program. The Pro*COBOL precompiler converts the SQL statements in the COBOL program into standard Oracle run-time library calls.
Questions tagged [procobol]
13 questions
8
votes
1 answer
Move record from Oracle array to Cobol occurs
How can I move a record from oracle to a Cobol array?
When I move a single field, everything works as expected.
When I try to move a record in an Oracle VARRAY I cannot
get it to work. The PRO*COBOL precompiler gives the following error…

Stefan Larsson
- 81
- 2
4
votes
2 answers
What does Cobol file status 9Â mean?
My issue is when I try to open on input a huge file (6GB) ,
there's a message that says:
cobol file status code 9Â
I compiled the program and it has no errors, but when I try to run it,
I use a small one (3 GB for example) my program work…

Hmidani Aymane
- 58
- 4
1
vote
1 answer
Pro COBOL support of Oracle Locator/Spatial Query
Does Pro COBOL 11g support the embedding of simple Oracle Locator Queries?
For example:
SELECT /*+ INDEX(b BLOCK_GROUP_IDX) */
b.blockg_key, b.county_name, b.state_abbr, b.state_fips, b.county_fips
FROM block_group b
WHERE
…

JB11
- 273
- 1
- 2
- 11
1
vote
2 answers
Migrating Pro*COBOL and Pro*C to Java: Is JDBC the way to go?
I am migrating Pro*COBOL and Pro*C (code with embedded SQL) to Java.
Am I right that I should move migrate all of the embedded SQL to JDBC calls?
Or is there a sort of "Pro*Java" way that Oracle would recommend? What is the usual best practice?

Nicolas Raoul
- 58,567
- 58
- 222
- 373
1
vote
1 answer
First calculated records in record-line/output-line becomes BLANK in output in COBOL
My calculations are correct. But the output file's ONLY first calculated record becomes as BLANK and affects all the records.
In the output file [A5-SalaryReport-5A.out], you may see the first record's position comes BLANK.
THIS IS MY INPUT FILE…

Nirmal
- 57
- 1
- 8
0
votes
1 answer
How to debug pro*cobol program which takes file name as argument
How to debug Microfocus cobol programs that take arguments, like rtsora Program-name ${filename.txt}

CHANDU SANJITH
- 22
- 1
- 5
0
votes
0 answers
Compile Issue under ProCOBOL due to SQLBEX
Have been trying to compile an existing Pro*COBOL program after making few changes, have verified the syntax and Non-Printable character which may cause issue for compilation.
But at the end, compilation for Pro*COBOL failing due one of .(dot)…
0
votes
1 answer
Compiler Thinks Im Refering to Nonexistent Paragraph or Section
I am getting errors concerning my procedure division in one of my assignments for class. It is a COBOL Program that is supposed to keep a running total of the average height and weight of applicants, number of brown-eyed applicants, number of male…

user5953005
- 11
- 2
0
votes
1 answer
RENT option to compile a reentrant COBOL program
I am new to COBOL programming.
I am making changes to a COBOL program which manipulates threads.I have introduced a file in the program to read a set of parameters and use it in the program. But whenever I compile the program I get the following…

Adi G
- 1
- 2
0
votes
1 answer
How to specify default file extension for Oracle's Pro*COBOL precompiler
Is it possible to configure the default file extension that Oracle's Pro*COBOL precompiler assumes for
EXEC SQL INCLUDE filename END-EXEC
statements in which there is no filename specified for the include file?
The docs seem specify that in this…

Gio
- 1,812
- 2
- 15
- 15
0
votes
2 answers
Cobol connect to oracle failed when password field is defined longer than real password value
My COBOL program cannot connect to oracle when the password field is defined longer than actual password length for a user. i.e, if the password value is 'mypasswd', the host variable to keep password must be defined with "PIC X(8)", otherwise,…

HiHui
- 45
- 2
- 11
0
votes
1 answer
Execution error : file 'rm1p0018' error code: 114, pc=0, call=1, seg=0 114 Attempt to access item beyond bounds of memory (Signal 11)
When I ran a script on HP-UX server then I am getting below error. Script is calling one executable file( rm1p0018 ) which made by cobol file.
Here is the error message from the log:
Execution error : file 'rm1p0018'
error code: 114, pc=0, call=1,…

user1587399
- 1
- 2
-1
votes
1 answer
Accessing Oracle from Mainframe
I am looking for information about accessing data present in ORACLE from IBM Mainframe applications (Z/OS). The data is lying on Oracle which is on a separate server and the IBM Mainframe system, by using COBOL programs need to access the data from…

saikumar81
- 3
- 2