MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search utility query

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
modak
Beginner


Joined: 09 Apr 2004
Posts: 14
Topics: 3

PostPosted: Wed May 05, 2004 3:08 am    Post subject: Search utility query Reply with quote

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
View user's profile Send private message
modak
Beginner


Joined: 09 Apr 2004
Posts: 14
Topics: 3

PostPosted: Wed May 05, 2004 3:17 am    Post subject: Reply with quote

Also I want that SRCH DSN is listed in the order string is found.
Back to top
View user's profile Send private message
mok
Beginner


Joined: 16 May 2003
Posts: 12
Topics: 0
Location: paris

PostPosted: Wed May 05, 2004 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message
modak
Beginner


Joined: 09 Apr 2004
Posts: 14
Topics: 3

PostPosted: Wed May 05, 2004 4:36 am    Post subject: Reply with quote

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
View user's profile Send private message
mok
Beginner


Joined: 16 May 2003
Posts: 12
Topics: 0
Location: paris

PostPosted: Wed May 05, 2004 9:27 am    Post subject: Reply with quote

I think you must combine this step with a SORT containing a lookup table changing the CONCAT(
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group