Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
having problem in writing the query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
gireesh.c

New User


Joined: 11 Jul 2005
Posts: 1

PostPosted: Fri Apr 21, 2006 10:43 am    Post subject: having problem in writing the query
Reply with quote

i have a screen which is done by front end people. in that there are some 8 options and each option contains 2 to 3 suboptions. if the user selects these options the result should be displayed on the next screen.
this is an online application.
please anyone tell me how to retrieve the records from the table for this problem.
thanks and regards,
gireesh.
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Apr 25, 2006 6:01 am    Post subject: Re: having problem in writing the query
Reply with quote

gireesh,

Sound like your going to need some dynamic SQL in your COBOL program

Read all about it at this link for Coding dynamic SQL in application programs

Dave
Back to top
View user's profile Send private message
Hanfur

Active User


Joined: 21 Jun 2006
Posts: 104

PostPosted: Mon Jul 03, 2006 12:48 pm    Post subject: Hi
Reply with quote

As Dave said its a good option to for dynamic SQL

But if are not good in that u could code separate cursor for each conditions and open the cursor only when based on the combination in which user selects..

-Han
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us