IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need help with Oracle Dynamic SQL: Method 4 in Pro*COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Anoop Chandran1984

New User


Joined: 14 Oct 2015
Posts: 5
Location: Test

PostPosted: Sat Feb 13, 2016 7:27 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sun Feb 14, 2016 6:23 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top