IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REXX script/program that do Automate Search


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 2358
Location: Israel

PostPosted: Thu Nov 23, 2006 3:15 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top