Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
REXX script/program that do Automate Search

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

New User


Joined: 23 Nov 2006
Posts: 2
Location: USA

PostPosted: Thu Nov 23, 2006 12:32 pm    Post subject: REXX script/program that do Automate Search
Reply with quote

Basically, I want to search every member in a PDS. All of these members are PROCs. Within each member I want to identify DD statements that catalog((only datasets with a DISP=(NEW,CATLG...) or DISP=(,CATLG...)) a dataset with a specified length. When that criteria is met I want to write a record to an output file. I want the output record to include, the member name, the STEP name, the DD name, the data set name, and the length. Also, I want to identify the SYSIN member when an EXEC statement executes a utility(SORT,IDCAMS,ECT). I want this job to work with any piece of JCL. This is how I see the output:

Code:


MCAACD81  STEP001   ABC123   FILEA      ABC.PROD.DATA.SET1  1234
MCAACD81  STEP001   ABC123   FILEB      ABC.PROD.DATA.SET2  3456
MCAACD81  STEP001   ABC123   FILEC      ABC.PROD.DATA.SET3  4567
MCAACD81  STEP002   UTILITY  SORTOUT1   ABC.PROD.DATA.SET4  1234
MCAACD81  STEP002   UTILITY  SORTOUT2   ACB.PROD.DATA.SET5  3456
MCAACD81  STEP002   UTILITY  SORTOUT3   ABC.PROD.DATA.SET6  4567
MCAACD81  STEP002   UTILITY  SYSIN      ABC.SYSIN(SORT07)


I am new to REXX. Does anyone have a REXX script/program that has some of logic I'm looking for?
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Nov 23, 2006 3:15 pm    Post subject:
Reply with quote

I believe the best method would be Edit-Macro (of course, it might be written in REXX).

Your desired output requires some parsing techniques, and sounds tedious to code. Do you have JCLCheck in your shop?

O.
Back to top
View user's profile Send private message
samuelmvs

New User


Joined: 23 Nov 2006
Posts: 2
Location: USA

PostPosted: Mon Nov 27, 2006 10:12 pm    Post subject: Re: REXX script/program that do Automate Search
Reply with quote

yes, we do.
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
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us