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

how to search a string in many sequential files?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Benjamin.L

New User


Joined: 11 Apr 2006
Posts: 17
Location: DL.PRC

PostPosted: Wed Apr 26, 2006 11:31 am
Reply with quote

Hi all,

could u pls tell me how to search a string in many sequential files at one time?

For example :
search 'abc' in sequential files like
project.group.test1.test
project.group.test2.test
project.group.test3.test
project.group.test4.test
...........
project.group.testn.test

thx for your helping!
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Wed Apr 26, 2006 12:11 pm
Reply with quote

Use 3.15 option in ISPF<Search-ForE Search data sets for strings of data Extended (Extended Dialog)>
Hope it Helps you

Murali.
Back to top
View user's profile Send private message
vivek_mvs1

New User


Joined: 25 Apr 2006
Posts: 12

PostPosted: Wed Apr 26, 2006 2:36 pm
Reply with quote

Hi Benjamin,

You can use EAZYEDIT tool for this purpose.

Step 1) Enter into Eazy edit

Step 2) Enter the DSN name & press Enter

Step 3) Enter SCAN in the command line

Step 4) Enter ur STRING "XXX"

It list u all the XXX in all members matched[/img]
Back to top
View user's profile Send private message
Benjamin.L

New User


Joined: 11 Apr 2006
Posts: 17
Location: DL.PRC

PostPosted: Wed Apr 26, 2006 2:57 pm
Reply with quote

Hi all
thx for your replies.

In mvs , i try to search a string 'abc' in 'project.group.test*.test' in ispf option 3.15, and it is not useful, because * is not valid, and it is also because they are sequential files.

So i want to find a easy way to search in many files at one time.

Is there any job which i can run to search ?
Back to top
View user's profile Send private message
Benjamin.L

New User


Joined: 11 Apr 2006
Posts: 17
Location: DL.PRC

PostPosted: Wed Apr 26, 2006 3:00 pm
Reply with quote

Hi vivek
could u pls tell me how to get EAZYEDIT tool ?

thx !
Back to top
View user's profile Send private message
vivek_mvs1

New User


Joined: 25 Apr 2006
Posts: 12

PostPosted: Wed Apr 26, 2006 3:17 pm
Reply with quote

Benjamin,

I am not sure your shop have this tool well if at all you are not sure...

check the main ISPF screen

ISR#PRIM ------------ MVSK ISPF/PDF PRIMARY OPTION MENU --
OPTION ===>

D DICTIONARY Data Dictionary Based Systems
1 BROWSE Display source data or output listings
2 EDIT Create or change source data
3 UTILITIES Perform utility functions
4 FOREGROUND Invoke language processors in foreground
5 BATCH Submit job for language processing
6 COMMAND Enter TSO command or CLIST
7 DIALOG TEST Perform dialog testing
11 WORKPLACE ISPF Object/Action Workplace
E EZYEDIT PDSMAN/MVS ISPF Productivity Facility
F FILE-AID Data handling facility
N NEWS Display summary of changes


If you have this tool select E in the command line, you can use that

Thanks,
Vivek
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Apr 27, 2006 6:31 am
Reply with quote

The way I do it is use 3.15 and select "batch" run.
When JCL displays copy it into your JCL library annd modify it to suit your needs:

Concatenate your libs to the input dataset then submit it like any other job.

Works like a charm. Here's what I keep handy for jobs like that:
Code:

//HILEVPA JOB (PACE),'XXXXXXX',MSGCLASS=X,CLASS=T,
//    NOTIFY=HILEV
//SEARCH  EXEC PGM=ISRSUPC,
//            PARM=(SRCHCMP,'ANYC')
//*EWDD  DD DSN=HILEV.Y2K.SRCLIB,DISP=SHR
//NEWDD  DD DSN=HILEV.Y2K.PROCLIB,

//          DISP=SHR
//       DD DSN=HILEV.XXX.PROCLIB,
//          DISP=SHR
//       DD DSN=HILEV.YYY.PROCLIB,
//          DISP=SHR
//OUTDD  DD DSN=HILEV.SRCHFOR.LIST,
//          DISP=OLD
//SYSIN  DD *
SRCHFOR  ' ACT1',
SRCHFOR  ' ACT2',
SRCHFOR  ' ACT3' 
Back to top
View user's profile Send private message
satya12

New User


Joined: 25 Apr 2006
Posts: 32
Location: India

PostPosted: Fri Apr 28, 2006 10:51 pm
Reply with quote

Hi

You can search for a string on 3.4 itself.

in 3.4 type project.group.test*.test so that you can see all the datasets in the next screen.

There in command line type SRCHFOR, then you will see another screen asking to input search string.The strng entered there will be searched in all the datasets and once it finishes the search you will get message "string found" beside the dataset which contains the string.

Thanks
Satya
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 -> JCL & VSAM

 


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 Search two or more word with FILEAID Compuware & Other Tools 15
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top