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 

Invoking SUPERC search utility thru' JCL

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


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Jan 14, 2003 12:40 am    Post subject: Invoking SUPERC search utility thru' JCL Reply with quote

1) I have a JCL which invokes the SUPERC search to search a string in different PDSs. When I saw the output I found that if same member name is found in the different PDS (concatenated PDS) then SUPERC search ignores the second one. I would like to know, whether we need to pass some parameters to the ISRSUPC so that it searches the duplicate members also.

Here is my JCL :

//JS01 EXEC PGM=ISRSUPC,
// PARM=(SRCHCMP,
// 'ANYC')
//NEWDD DD DSN=TSONJAY.PROJECT.EXAM,DISP=SHR
// DD DSN=TSONJAY.PROJECT.FILES,DISP=SHR
//OUTDD DD DSN=TSONJAY.JS00.SRCHFILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// AVGREC=K,
// SPACE=(CYL,(40,20),RLSE)
//SYSIN DD *
SRCHFOR 'TSONJAY'
/*


2) Another question, Can we use this search to search in a PS which is not a member of any PDS ie something like
'RJE355D$.R010.SORTOUT6.OUTPUT'. In that case, how and where to specify the PS name.

Thanks & Regards,
Navin. J
Back to top
View user's profile Send private message  
semigeezer
Supermod


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

PostPosted: Tue Jan 14, 2003 1:45 am    Post subject: Reply with quote

1) Use the SDUPM process option. You can see the process options in option 3.15. Generate JCL as needed and look at it from there. Process options are specified with the P primary command or from some pulldown (I don't know which one - I always use the P command).

2) I'm not sure about sequential searches. I would thing it would work the same way. I know compare can be done in sequential files and compare uses the same ddnames as search.
Back to top
View user's profile Send private message Visit poster's website  
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Jan 16, 2003 1:48 am    Post subject: Reply with quote

Hi semigeezer,

I tried the option 'SDUPM' and It did Work. Thanks. But I get a RC=16 when I specify the PS name in the DD name where we provide the PDS Names. It says invalid PDS name specified.

Can someone pls. tell me how to include PS (Not a Member) in SUPER-C Search.

Thanks & Regards,
Navin. J
Back to top
View user's profile Send private message  
semigeezer
Supermod


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

PostPosted: Thu Jan 16, 2003 2:12 am    Post subject: Reply with quote

The doc doesn't reference doing this and I've never heard mention of it before. What are you trying to do with this exactly? See strings in context? If so, you may want to just use the FINDX macro.
Back to top
View user's profile Send private message Visit poster's website  
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Jan 16, 2003 3:03 am    Post subject: Reply with quote

Actually, I was a little fascinated by the GUI features (PANELS) available in REXX, b'cas I like to do GUI related stuff (especially in JAVA Swings).

What I did is that I have a PANEL in which the user can specify the list of PDS to be searched and the search string. I wrote a program myself to open all the pds and search all the members for that string but found it to be very slow. Thats why I moved to SUPERC search. But I don't want my GUI features to go unused. So Now, I am trying to get the input the user as it is now, but internally I use the SUPERC to search the string(Since, it is very fast) and then format the output of the search and display it in a tabular format to the user via another PANEL. the output would look like this :

Code:


                           _ ENTER '/' TO OPEN DATASET AND VIEW
------------------------------------------------------------------------------
SNO       DIRECTORY                             MEMBER         LINENO
------------------------------------------------------------------------------
 1.       TSONJAY.REXX                           ADD             1
 2.       TSONJAY.REXX.BACKUP                    AFIND          28
 3.       TSONJAY.REXX.BACKUP                    AFIND          31
......



Now when the User selects any one of the row my program will display the actual line where the text is found in that MEMBER as a preview, below the table. And, if the user enters a '/' in the input field and chooses a row from the table then the program will open the MEMBER in view mode and position the cursor on the line (line no which is displayed in the row selected) and hilight the search string. (Just a User Friendly type of output).

In the existing code, Suppose U enter 'TSONJAY.REXX.*' it will list all the PDS & PS starting will the 'TSONJAY.REXX' and the user may choose the PDS which he want to search. The screen would look like

Code:


SEARCH STRING : REXX

DATA SET  : TSONJAY.REXX.*

PDS : 0000002                                                   MEMBERS : 00000022
-------------------------------------------------------------------------------------
  SNO               DIRECTORY                       DSORG    MEMBERS   SELECT
------------------------------------------------------------------------------------
   1.              TSONJAY.REXX                   PDS         10           /
   2.              TSONJAY.REXX.BACKUP            PDS         11           /
   3.              TSONJAY.REXX.ADD               PS           0           /
.....



So, In the list we Find 'TSONJAY.REXX.ADD' which is a PS (Not a Member) and I want to search that also using the SUPERC facility.

Please Advise.

Thanks & Regards,
Navin. J
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 -> 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