Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Multiple string search in a pds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
jemonthomas

New User


Joined: 24 Jul 2006
Posts: 35
Location: india

PostPosted: Wed May 02, 2012 1:22 pm    Post subject: Multiple string search in a pds
Reply with quote

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

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7251

PostPosted: Wed May 02, 2012 1:25 pm    Post subject: Reply to: Multiple string search in a pds
Reply with quote

Doesn't your Source Management package have anything for this?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 02, 2012 2:24 pm    Post subject:
Reply with quote

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

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Wed May 02, 2012 6:53 pm    Post subject: Reply to: Multiple string search in a pds
Reply with quote

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

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Wed May 02, 2012 8:34 pm    Post subject:
Reply with quote

Can be done in 4 steps:
  1. 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...

  2. 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.

  3. Step3: run ISRSUPC on the source lib with the temporary file as process statements.
    Consider using the same options...

  4. Step4: create your report.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us