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: 10210
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
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm


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