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
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


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