|
|
| Author |
Message |
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 146 Location: Canada
|
|
|
|
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 |
|
 |
References
|
|
 |
superk
Moderator Team Head
Joined: 26 Apr 2004 Posts: 3318 Location: Charlotte,NC USA
|
|
|
|
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 |
|
 |
martin9
Active User
Joined: 01 Mar 2006 Posts: 278 Location: Basel, Switzerland
|
|
|
|
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 |
|
 |
|
|