View previous topic :: View next topic |
Author |
Message |
modak Beginner

Joined: 09 Apr 2004 Posts: 14 Topics: 3
|
Posted: Wed May 05, 2004 3:08 am Post subject: Search utility query |
|
|
I am searching one string in concatenated datasets using ISRSUPC. something like this
//UPROC JCLLIB ORDER=(MN.PROCLIB)
//SEARCH EXEC PGM=ISRSUPC,PARM=(SRCHCMP,ANYC')
//NEWDD dd dsn=shr,dirstnode.secod.one
dd dsn=shr,dirstnode.secod.two
dd dsn=shr,dirstnode.secod.three
//OUTDD DD SYSOUT=*
//SYSIN DD *
SRCHFOR 'abc' SELECT MEMBCD
My problem is 'when a string is found it shows the name of the last dataset in the list of concatnated datasets evenif last dataset is empty and the string was found in first dataset.
Thanks |
|
Back to top |
|
 |
modak Beginner

Joined: 09 Apr 2004 Posts: 14 Topics: 3
|
Posted: Wed May 05, 2004 3:17 am Post subject: |
|
|
Also I want that SRCH DSN is listed in the order string is found. |
|
Back to top |
|
 |
mok Beginner
Joined: 16 May 2003 Posts: 12 Topics: 0 Location: paris
|
Posted: Wed May 05, 2004 3:59 am Post subject: |
|
|
I think it is not possible to get it but you have an information with the concat keyword in the listing. I used this JCL :
[code:1:9ddf21a89f]//SUPERC JOB (ACCT |
|
Back to top |
|
 |
modak Beginner

Joined: 09 Apr 2004 Posts: 14 Topics: 3
|
Posted: Wed May 05, 2004 4:36 am Post subject: |
|
|
Thanx mok,
but this is not helpful in my scenario. I want DSN name with the search results indicating that the string was found in this DSN. |
|
Back to top |
|
 |
mok Beginner
Joined: 16 May 2003 Posts: 12 Topics: 0 Location: paris
|
Posted: Wed May 05, 2004 9:27 am Post subject: |
|
|
I think you must combine this step with a SORT containing a lookup table changing the CONCAT( |
|
Back to top |
|
 |
|
|