View previous topic :: View next topic
|
Author |
Message |
babruvahana
New User
Joined: 30 Mar 2008 Posts: 10 Location: hyderabad
|
|
|
|
I am using a CICS-COBOL-DB2 program which has a field for an ID, if the user wishes to enter a partial ID then the pgm xctl's to another screen which displays the list of ID's which begin with the ID entered in the previous screen and user can select against the record to view the details.
In coding the second screen can i use inspect verb while retreiving data from the tables in the sql query? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You need to post some examples of what you want to do. Post what might be entered on the screen and some example table data that is to be "selected".
The cobol INSPECT is not valid in an sql statement, but there may be a way to get what you want. |
|
Back to top |
|
|
babruvahana
New User
Joined: 30 Mar 2008 Posts: 10 Location: hyderabad
|
|
|
|
2nd screen sorrry 1st screen is printed twice
Screen shots removed per babruvahana's request |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
babruvahana,
You need not post the screenshots unless it's really required to express your problem. As suggested above you can't have an INSPECT in an SQL. If I understood that correctly, I believe you'll be able to do that using the 'LIKE' parameter in SQL and a host variable having '%' wildcards. Search the DB2 forum. A similar topic was in discussion sometime back. |
|
Back to top |
|
|
babruvahana
New User
Joined: 30 Mar 2008 Posts: 10 Location: hyderabad
|
|
|
|
Thank you dick and arcvns for your replies i will check out in the db2 forum |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
anil.k
maybe LOCATE or POSSTR is what you are looking for. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Screen shots, in addition to being discouraged here, are not a good idea when they display valid IP addresses. |
|
Back to top |
|
|
|