Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Search a string in multiple PS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Search a string in multiple PS
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Thu Feb 12, 2009 12:09 pm    Post subject: Reply to: Search a string in multiple PS
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us