prasanth_thavva Beginner

Joined: 14 May 2006 Posts: 40 Topics: 18
|
Posted: Wed May 28, 2008 1:38 pm Post subject: Is SEARCH verb (subscript) handle multiple conditions (AND.. |
|
|
Hi,
For my current assingment ,
I have to push a value if that x, y lies in between Min , Max of X & Y.
X & Y , are populated to internal Data Layer (DB2 pgm) to a internal table.
struct of internal table is
03 TABLE OCCURS 1000 TIMES.
05 X PIC ..
05 Y PIC ..
---
In the above is Internal table suits or ?
when compiling my code , i am getting error in
Invalid WHEN cond in SEARCH
- Because i used to compare XM <= x => XL & same as Y (X M-Max, L - Least)
SEARCH TABLE
AT END imperative stmt
WHEN
f1(subscript) >= fetched db2 value AND |
f1(subscript) <= fetched db2 value AND |- x
z1(subscript) >= fetched db2 value AND|
z1(subscript) >= fetched db2 value AND |- y
....
is multiple conditions are allowed in Search critiria ?
Please suggest me some way. Your inputs are appreciated....
 _________________ Thanks&Regards
Prasanth Thavva |
|