View previous topic :: View next topic
|
Author |
Message |
jemonthomas
New User
Joined: 24 Jul 2006 Posts: 35 Location: india
|
|
|
|
I have a requirement to search multiple strings in a list of copybook pds and from that result I need to identify the programs using that copybook from source lib and write in a file as report. I created the JCL but it is taking lot of time and abending with S322. So I tried using a rexx program. I created for searching one single string search. How can I try for multiple strings? Also can we pass the search strings in a dataset to rexx as input so that it gives result based on that?
Could anyone help me on this? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Doesn't your Source Management package have anything for this? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you can not search with rexx faster than superc can search.
suggest you go back to your original job.
something is wrong, you need to show us what you did with your jcl.
your obvious experience level precludes writing the search in rexx. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
Use ISPF option 3.15 and specify a few search strings and set 'execution mode' to batch. It will build JCL for you. Study the JCL and build similar JCL. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Can be done in 4 steps:
- Step1: Run ISRSUPC on the list of copybook pds. Use multiple SRCHFOR cards for your multiple strings.
Consider using options like COBOL, DPCBCMT, LMTO, SDUPM, NOSUMS...
- Step2: Use SORT or write a REXX program to process the output of step1. The result is a temporary file with one SRCHFOR card for each copybook with the searched strings.
- Step3: run ISRSUPC on the source lib with the temporary file as process statements.
Consider using the same options...
- Step4: create your report.
|
|
Back to top |
|
|
|