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
 

 

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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


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