Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Anoop Chandran1984

New User


Joined: 14 Oct 2015
Posts: 2
Location: USA

PostPosted: Sat Feb 13, 2016 7:27 am    Post subject: Need help with Oracle Dynamic SQL: Method 4 in Pro*COBOL
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.
https://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: 1765
Location: UK

PostPosted: Sun Feb 14, 2016 6:23 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am
No new posts RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 5 Wed Mar 29, 2017 12:47 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us