View previous topic :: View next topic
|
Author |
Message |
Benjamin.L
New User
Joined: 11 Apr 2006 Posts: 17 Location: DL.PRC
|
|
|
|
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 |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
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 |
|
|
vivek_mvs1
New User
Joined: 25 Apr 2006 Posts: 12
|
|
|
|
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 |
|
|
Benjamin.L
New User
Joined: 11 Apr 2006 Posts: 17 Location: DL.PRC
|
|
|
|
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 |
|
|
Benjamin.L
New User
Joined: 11 Apr 2006 Posts: 17 Location: DL.PRC
|
|
|
|
Hi vivek
could u pls tell me how to get EAZYEDIT tool ?
thx ! |
|
Back to top |
|
|
vivek_mvs1
New User
Joined: 25 Apr 2006 Posts: 12
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
satya12
New User
Joined: 25 Apr 2006 Posts: 32 Location: India
|
|
|
|
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 |
|
|
|