View previous topic :: View next topic
|
Author |
Message |
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Hi ,
I was looking at couple of REXX codes and foud that
library SYS1.SISPLPA is used on many occasion.
However I was not able to get for what purpose it was used.
For example a REXX utility was using this dataset and it was used for searching a string in the Dataset.
Can anybody tell me whats this library and where can it be used???
Thanks
ap_mainframes |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
I do not know what this ReXX program was doing but SYS1.SISPLPA is a load library. |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Hey jon,
That utility has got this statement
"CALL 'SYS1.SISPLPA(ISRSUPC)','SRCHCMP'"
Can anybody make out whats this doing??
Thanks |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
That utility is the superc utility for searching a PDS for one or more strings. This is the same as 3.12 or 3.14 on ISPF. |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Just going ahead with this.
Even if anybody can tell me how do I use SUPERC from REXX even that would help me a great deal.
Thanks
ap_mainframes |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
If you examine the rest of thr code you will see systsin. The search parameters are built ion this dataset. Also an INDD will be allocated. This is the PDS or PDS's to be searched/ |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
ok..thanks jon,
I would be grateful if you can tell me how exactly ( pseudo code ) do i need to call the compare utility ( of ISPF ) ??
Thanks for all the information
thanks
ap_mainframes |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
I apologize, in a previous post I said INDD but it should be NEWDD. Also SYSIN is used not SYSTSIN. Your ReXX code you already have should serve as an example. In order to do the superc you need the following:
1. Allocate NEWDD to PDS to be searched.
2. Allocate SYSIN for search parameters
Assign variable for this dataset
sysparm.1 = "SRCHFOR 'subcom'"
"execio * diskw sysin (stem sysparm. finis)"
3. Allocate outdd for ouput for the superc.
4. call superc
listparm = 'DELTAL,LINECMP'
address linkmvs "isrsupc listparm" |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
hey jon..thanks.
but this code seems to be for searching..actually I needed for comparing ( please see my previous message).
Can you please provide that .
thanks
ap_mainframes |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
Sorry, for comparing assign OLDD and NEWDD to the PDS members you wish to compare. The information in step 4 above was for a compare instead of a search. |
|
Back to top |
|
|
|