I have an application which demands me to include wild card search from db2 database
hance the query is somewhat :
EXEC SQL
SELECT EMPID INTO :EMPID WHERE NAME LIKE :NAME
END-EXEC.
I would accept name from CICS map if user enters SH* then all names starting should be listed...
how should i accomplish this task( I am using a CURSOR the query was just for display purpose)
one solution i thought of is to have variable with entry 'SH______" assuming my variable to be of 8 bytes but what if its SHI*
how can i dynamically allot to a variable
if i use
01 name
05 name1 pic x(05)
05 sym pic x(03) value all '_'
then if i move SHI* after removing * then i would have SHIbb___ in my name field..... which doesn't work
how should i go abt it.