View previous topic :: View next topic
|
Author |
Message |
Akash Sharma
New User
Joined: 13 Jan 2009 Posts: 36 Location: India
|
|
|
|
Hi all,
I have a requirement of searching strings in multiple PS.
The input strings will be located in a PS, search them in multiple PS, create a search report
e.g.
-------------------------------------------------------------
Search string PS:
AB
CD
EF
GH
-------------------------------------------------------------
String to be searched in PS:
AMEV3.RTB.INP1
AMEV3.RTB.INP2
AMEV3.RTB.INP3
-------------------------------------------------------------
Sample data of PS:
AMEV3.RTB.INP1
THE.............AB............AS OQAW
SCALVD.........ASCDF.........
AMEV3.RTB.INP2
THE.............CD..........AS OQAW
SCALVD.........ASCSDF.........
AMEV3.RTB.INP3
SCALVD.........ASCQDF.........
THE.............EF..GH......AS OQAW
-------------------------------------------------------------
Output report:
AB
THE.............AB............AS OQAW
CD
THE.............CD..........AS OQAW
SCALVD.........ASCDF.........
EF
THE.............EF..GH......AS OQAW
GH
THE.............EF..GH......AS OQAW
-------------------------------------------------------------
I have tried doing this through DFSORT but the data size is very large and requires extensive space for file handling.
Is this possible through a REXX program? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the dasd space required to store the results is independent of the tool
used for the serch
sort or rexx You will the space needed will depend only on the serch result;
up to the space of he source datasets if the string is found in every record.
if the datasets are large Rexx could be the worst choice,
it' s I/O performance is very low |
|
Back to top |
|
|
|