Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10232
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us