Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle pre compiler for COBOL

Status
Not open for further replies.

Smile4U

Programmer
Jul 1, 2002
7
US
I am trying to use the Oracle pre compiler on a Cobol program and it is creating an error on this line:

01 SQLCTX GLOBAL PIC S9(9) COMP VALUE +1027525961.

The error is:

The number of digits or the position of the decimal point in a "VALUE" literal was not compatible with the "PICTURE" definition of the subject data item. The "VALUE" clause was discarded.

The SQLCTX line was inserted into the program by the compiler and I am not sure what to do. The person who used to maintain this app has retired but left me a note that this would happen and I needed to modify the file that this bug creates before the compile completes. I don't know what that means...

Has anyone encountered this error and know the solution?

Thanks
Janie
 
Janie,
You may well be in luck as we've just had a thread on this very recently (like 5 minutes ago!). I think you may need to look at your pre-compile options, specifcally the TRUNC parameter. Have a look at thread209-319782, as this may explain things further. (if this helps, feel free to award me a star as I'm desparately short having just awarded Dimandja one for his superb work in that thread!!)

If this doesn't help (it may not as I'm not sure of the pre-compile options on Oracle), please get back to me.

Marc
 
Thanks Marc,

I had read that thread hoping it would help me figure this out...it didn't. But I found help from someone in my company.

Here's what I had to do.

As the precomiler runs it creates a temporary file. I had to change the PIC S9(9) to a PIC S9(10) in the temp file. It the second part of the compile it reads that file in then deletes it. Sounds nuts but it works...till a better solution comes along.

Thanks for your help
Janie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top