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
 
how to search a string in many sequential files?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: how to search a string in many sequential files?
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: 237

PostPosted: Wed Apr 26, 2006 12:11 pm    Post subject: Re: how to search a string in many sequential files?
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: how to search a string in many sequential files?
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    Post subject:
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    Post subject: Re: how to search a string in many sequential files?
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM 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 FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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