IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Search a string in multiple PS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Akash Sharma

New User


Joined: 13 Jan 2009
Posts: 36
Location: India

PostPosted: Thu Feb 12, 2009 11:44 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Feb 12, 2009 12:09 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top