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 reg query on DYNALLOC feature raghuraman123 SYNCSORT 12 Wed Jan 10, 2018 2:42 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
No new posts Native SQL Query kishpra DB2 1 Wed Nov 22, 2017 8:38 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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