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.
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.
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?