Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Purging jobs using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 146
Location: Canada

PostPosted: Wed Mar 01, 2006 6:36 pm    Post subject: Purging jobs using REXX
Reply with quote

Hi,

I want to write a Rexx Utility for purging the active/inactive jobs.
Can anybody suggest how can I do that.
Thanks for all the information you can provide.

Regards
Back to top
View user's profile Send private message
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3314
Location: Charlotte,NC USA

PostPosted: Wed Mar 01, 2006 6:53 pm    Post subject: Re: Purging jobs using REXX
Reply with quote

ap_mainframes, you didn't provide anywhere near enough information to work with.

Where (i.e. what sort of environment) would this REXX exec be running? Is this for an automation environment? If so, we would need to know what automation product you are using. Outside of an automation environment, I don't know of any REXX functions that would do what you want. There are some TSO functions for dealing with jobs (STATUS and OUTPUT are two) and these require special authorization to use. There may be automation extensions to the JES spool interaction tools, such as SDSF, IOF, or CA-Sysview, and if so, I'm sure that the documentation for these products details how to write customized automation routines.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 278
Location: Basel, Switzerland

PostPosted: Wed Mar 01, 2006 7:14 pm    Post subject:
Reply with quote

Hy,

simply invoke in REXX the SDSF Batch interface,
this simulates an online session, where you can
work thru screen by screen, then parse it and
invoke it again with the appropriate purge command.

address tso
"call *(sdsf)"

allocate first the necessary dd-statements needed by sdsf

other possibility is to establish a mvs console session and pass
the operator command directly...

address mvs
...

martin9
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1