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 

Problem with Batch Search - ISRSUPC

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 12:36 am    Post subject: Problem with Batch Search - ISRSUPC Reply with quote

I am trying to search all headers in C programs by searching '#INCLUDE'. I see that foreground search (3.14) gives correct result but when I execute this in batch it doesn't process all members.

I have over 2000 members and the batch search process only 52 members.

JCL:
Code:
//INCLUDE EXEC PGM=ISRSUPC,PARM=(SRCHCMP,'ANYC')   
//NEWDD  DD DSN=TSO1234.PROJ1234.C,DISP=SHR     
//OUTDD  DD SYSOUT=*                               
//SYSPRINT DD SYSOUT=*                             
//SYSOUT   DD SYSOUT=*                             
//SYSIN  DD *                                     
SRCHFOR  '#INCLUDE' 


Search Sumary:
Code:
LINES-FOUND  LINES-PROC  MEMBERS-W/LNS  MEMBERS-WO/LNS  COMPARE-COLS  LONGEST-L
      391        16270           51              1           1:80           80
                                                                               
PROCESS OPTIONS USED: ANYC                                                     
                                                                               
THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:         
   SRCHFOR  '#INCLUDE'         


Foreground Search Summary:
Code:
LINES-FOUND  LINES-PROC  MEMBERS-W/LNS  MEMBERS-WO/LNS  COMPARE-COLS  LONGEST-LI
    32007       948522         2082              6           1:80           80 
                                                                               
PROCESS OPTIONS USED: ANYC                                                     
                                                                               
THE FOLLOWING PROCESS STATEMENTS (USING COLUMNS 1:72) WERE PROCESSED:           
   SRCHFOR  '#INCLUDE'           


Thanks,
Diba.

Last edit: corrected spelling of search.


Last edited by Dibakar on Tue Mar 13, 2007 3:18 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Mar 13, 2007 12:52 am    Post subject: Reply with quote

Do you use your own-written JCL or a generated one?

O.
________
og kush marijuana strain


Last edited by ofer71 on Sat Feb 05, 2011 11:57 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 1:08 am    Post subject: Reply with quote

It is my JCL and have been doing so quite often.
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 1:09 am    Post subject: Reply with quote

Sorry,

I used the one generated by 3.14, option 2 (Batch).

And I have been always generating JCLs this way.

Thanks,
Diba.
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Mar 13, 2007 1:20 am    Post subject: Reply with quote

ther is only 1 data set and it contains 2000 members? Or is there a concatenation and the JCL does not have all the data sets?
Back to top
View user's profile Send private message Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 2:07 am    Post subject: Reply with quote

It is only a single dataset with 2000 members.
Back to top
View user's profile Send private message Send e-mail
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Mar 13, 2007 2:44 am    Post subject: Reply with quote

Are there any additional statements after the 'SRCHFOR' statement in SYSIN?

O.
________
no2 vaporizer


Last edited by ofer71 on Sat Feb 05, 2011 11:57 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 3:15 am    Post subject: Reply with quote

Nope, there is only one sysin card.
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 3:45 am    Post subject: Reply with quote

I am very sorry.

While modifying the existing JCL I gave diferent dataset name for NEWDD so I was obviously geting different result.

But the original problem was that when I was doing a search on a concatenation some members were skipped.

I will come back with details.

Thanks, and sorry again -
Diba.

Last edit: Corrected spelling.


Last edited by Dibakar on Tue Mar 13, 2007 7:43 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 4:04 am    Post subject: Reply with quote

Ok, I got the problem (not the solution).

What I found that if I have a concatenation of DSN1 and DSN2 and both happen to have a common member MEM1 then 'ISRSUPC' (in batch) searches only within DSN1(MEM1) and not within DSN2(MEM1).

So I get different result when I change the order in concatenation.

Do I need to specify something so that in case of same members present in multiple datasets it searches all members, not just the first one?

Thanks,
Diba.
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 4:28 am    Post subject: Reply with quote

I found that I have to specify the option 'ALLMEMS' but could not make out how to do it.

Thanks,
Diba.
Back to top
View user's profile Send private message Send e-mail
ofer71
Intermediate


Joined: 12 Feb 2003
Posts: 358
Topics: 4
Location: Israel

PostPosted: Tue Mar 13, 2007 4:57 am    Post subject: Reply with quote

ALLMEMS is a process option, thus should be specified in the parameters. Simply change your PARM to: PARM=(SRCHCMP,'ANYC','ALLMEMS')

O.
________
[URL=http://www.dodge-wiki.com/wiki/Chrysler_Sebring_(coupe)]Sebring (coupe)[/URL]


Last edited by ofer71 on Sat Feb 05, 2011 11:58 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Tue Mar 13, 2007 5:26 am    Post subject: Reply with quote

I tried
Code:
PARM=(SRCHCMP,'ALLMEMS','ANYC')

and
Code:
PARM=(SRCHCMP,'ALLMEMS,ANYC')


but still the result is same

thanks,
diba
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Mar 13, 2007 3:19 pm    Post subject: Reply with quote

allmems or sdupm?
Back to top
View user's profile Send private message Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Wed Mar 14, 2007 12:08 am    Post subject: Reply with quote

sdupm worked.

I was confused by explanation of ALLMEMS.

Thanks,
Diba.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF 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