View previous topic :: View next topic
|
Author |
Message |
Anoop Chandran1984
New User
Joined: 14 Oct 2015 Posts: 5 Location: Test
|
|
|
|
Hi All,
I have been working on CICS Web aware programs at my new work place for the last few months.We use Oracle as the database and use Pro*COBOL to access the DB.I'm currently working on a project where in I would need to built a dynamic query .
As I have an unknown number of select-list items and place-holders,I use Oracle Dynamic SQL:Method 4 to fetch the data.
The link below has the details on how I'm achieving this.
docs.oracle.com/database/121/LNPCB/pco11ody.htm#LNPCB011
I have been able to dynamic execute the query and get value for the character fields.But my issue is with accessing Numeric fields from the database.I am getting a value of '0' for all numeric data.
After going thru the above manual,I realised that I should be "coercing Datatypes" .But my SELDVTYP field is returning -32767 for all datatypes and not any of those "Internal Datatype Codes" as specified in "Table 11-1 Internal Datatypes and Related Codes"..
Can someone please help me in finding out why SELDVTYP is returning -32767.Its defined as PIC S9(04) COMP as shown in the manual.
Thanks for your help.
Anoop |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
From the little I read of the manual it would appear that this is for a PC and not a mainframe. As this is a mainframe forum you should ask mainframe related questions. What, precisely, is the mainframe aspect of your query? |
|
Back to top |
|
|
|