One file has 10 fields,all are in CHAR & Len 10. (arrival seqnence)
This file having 1 Million record and want to search perticular value in a record,say 'SAMUL400',also not aware in which field have to search.
Plz help me to build a logic for the above ...thanks
Software/Hardware used:
ASKED:
December 18, 2009 10:16 AM
UPDATED:
December 18, 2009 10:59 PM
so in RPG if you wanted the record and the field you might do this
Select
When %SCAN(‘TESTVALUE’ : FIELD1) > 0
…
When %SCAN(‘TESTVALUE’ : FIELD2) > 0
etc.
but you could also to this in SQL
where Field1 like ‘%TESTVALUE%’ or Field2 like ‘%TESTVALUE%’ etc
or in Query with the equilivant…
Phil