View previous topic :: View next topic |
Author |
Message |
LaluMon Beginner
Joined: 28 Dec 2002 Posts: 21 Topics: 7
|
Posted: Mon Sep 29, 2003 6:56 pm Post subject: Multiple dataset search facility |
|
|
Hello,
I can search a field using 3.14 option. But if I want to search the field in multiple datasets, how do I do it? I am looking for the same 3.14 screen, but with multiple dataset names to search....What is the best way to accomplish this...
Regards |
|
Back to top |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Mon Sep 29, 2003 11:29 pm Post subject: |
|
|
Hi
Foreground
This is what I see when I use the HELP (PF1) in 3.15:
Code: | If you leave the SEARCH data set name field blank, a concatenation entry
panel is displayed. You can specify a list of concatenated data sets, an
uncataloged or password protected data set, or a cataloged data set name.
Up to four data sets may be concatenated for the search input.
DS1 . . . 'PROJECT.GROUP.SRC'
DS2 . . . MYGROUP.SRC
DS3 . . .
DS4 . . . 'PROJECT.MYGROUP.SRC.OLD'
Note: If two or more sequential data sets are concatenated as one input data
set, the data set attributes (for example, BLKSIZE) must be identical.
The alternate "other" fields for data set names, volume serial and password
information are similar to the standard ISPF panel format. |
Background
Here is an example from the manual:
Code: | // JOB
//SEARCH EXEC PGM=ISRSUPC,PARM=('SRCHCMP,ANYC')
//STEPLIB DD DSN=ISPF330.LOAD,DISP=SHR
//NEWDD DD DSN=USERID.PDS,DISP=SHR
// DD DSN=USERID.PDS2,DISP=SHR
//OUTDD DD SYSOUT=*
//SYSIN DD *
SRCHFOR 'NEEDLE',W,10:20
/*
// |
O.
________
Harley-Davidson Vl
Last edited by ofer71 on Thu Mar 17, 2011 10:35 am; edited 1 time in total |
|
Back to top |
|
|
LaluMon Beginner
Joined: 28 Dec 2002 Posts: 21 Topics: 7
|
Posted: Tue Sep 30, 2003 6:35 pm Post subject: |
|
|
I was thinking of more than 4 datasets and possibly by giving a wild character search of files...like
hlq1. hlq2.** etc..
Anyways, thanks though!
Regards |
|
Back to top |
|
|
naveen Beginner
Joined: 03 Dec 2002 Posts: 90 Topics: 31
|
Posted: Tue Oct 07, 2003 2:03 am Post subject: |
|
|
1. Go to 3.4 in ISPF
2. In 'Dsname Level' write 'yurid.pds.*' i.e. hlq.slq.llq as per your requirement along with wildcard cahracter and enter
3. On the dslist command line type 'srchfor' and enter
4. A menu will open and allow you to write search string there and the same search string(s) will be searched in all the dataset listed in dslist screen. |
|
Back to top |
|
|
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Tue Oct 07, 2003 2:22 am Post subject: |
|
|
naveen
I think 'srchfor' is a home-grown utility.
The ISPF supplied DSLIST commands described here.
O.
________
strawberry cough
Last edited by ofer71 on Sat Feb 05, 2011 11:05 am; edited 1 time in total |
|
Back to top |
|
|
Premkumar Moderator
Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
|
Posted: Tue Oct 07, 2003 3:45 am Post subject: |
|
|
SRCHFOR function in 3.4 option is available in z/OS 1.2 and later releases.
See here. |
|
Back to top |
|
|
|
|