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
 

 

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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am


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