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: 5

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: 1800
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 Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 2 Tue May 09, 2017 6:31 pm


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