|
|
| Author |
Message |
krsk
New User
Joined: 24 Jun 2008 Posts: 16 Location: INDIA
|
|
|
|
Hello
Can we run REXX exec in spool? Suppose I have one exec DE for deleting a dataset, I have to use it for deleting the datasets in one of the jobs in the spool.
Thanking you |
|
| Back to top |
|
 |
References
|
Posted: Fri Jul 11, 2008 5:13 pm Post subject: Re: Can we run REXX exec in spool |
 |
|
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 2959 Location: Brussels once more ...
|
|
|
|
How do you mean run it in the spool ?
Do you perhaps mean to process JES elements ? |
|
| Back to top |
|
 |
krsk
New User
Joined: 24 Jun 2008 Posts: 16 Location: INDIA
|
|
|
|
Hello
It is like this, see if we have some job submitted like USERIDA, when we go into that, using ? in the left of jobname in the spool, then it displays some datasets, if we press s we can browse them. In the same way, I want a REXX program DE if I type DE instead of S, it should be deleted. Is it possible with REXX and ISPF in the spool?
I am new to REXX, so I do not have much idea on REXX.
Thanking you, |
|
| Back to top |
|
 |
Garry Carroll
Active User
Joined: 08 May 2006 Posts: 132 Location: Dublin, Ireland
|
|
|
|
| Quote: |
| using ? in the left of jobname in the spool, then it displays some datasets, if we press s we can browse them. In the same way, I want a REXX program DE if I type DE instead of S, it should be deleted |
You want a function to delete selected spool files while is SDSF? If you display the job as (H)eld output and enter the ? You can then purge individual files.
Regards,
Garry. |
|
| Back to top |
|
 |
krsk
New User
Joined: 24 Jun 2008 Posts: 16 Location: INDIA
|
|
|
|
Hello,
Yeah, but I want to develop my own REXX routine, I want to do some other programs also for renaming the files in spool etc.
Thanking you, |
|
| Back to top |
|
 |
Bill Dennis
Active User
Joined: 17 Aug 2007 Posts: 247 Location: Iowa, USA
|
|
|
|
The names you see when you do a '?' by a job are the DDNAMEs that created the spool output. You cannot change these names.
If you select output for viewing using the 'SE' command, you'll be in an EDIT window. You could use EDIT macros written in REXX to act upon dataset names found in the output. |
|
| Back to top |
|
 |
krsk
New User
Joined: 24 Jun 2008 Posts: 16 Location: INDIA
|
|
|
|
Hello,
Yeah! That is right. Renaming the files in the SPOOL is not possible.
I gave that by mistake, I wanted to mean an example.
The requirement is, I want to create my own REXX routines, for editing, browsing, deleting etc the files in SPOOL job, and I want to know how I can run it in SPOOL.
Thanking you, |
|
| Back to top |
|
 |
Garry Carroll
Active User
Joined: 08 May 2006 Posts: 132 Location: Dublin, Ireland
|
|
|
|
| Quote: |
| I want to create my own REXX routines, for editing, browsing, deleting etc the files in SPOOL job |
It's unclear what precisely you want to do. Do you want the ability to manipulate the contents of SPOOL datasets (e.g. JESYSMSG, SYSPRINT &c.) or do you want to manipulate selected datasets that were used by the job during execution?
If the former, I'd expect that your security people would have a view on this as you would be attempting to alter the jobs' history. If the latter, you can use IBM's SDSF Support for REXX or else interface with the SDSF program by providing the ISFIN and ISFOUT and linking to SDSF.
| Quote: |
| I want to know how I can run it in SPOOL. |
You can't run in IN spool. Spool is data, not an environment. You can run your REXX to use the spool data.
Regards,
Garry. |
|
| Back to top |
|
 |
krsk
New User
Joined: 24 Jun 2008 Posts: 16 Location: INDIA
|
|
|
|
Hello,
The actual requirement is, I want to develop a REXX routine DS – Delete dataset, place the cursor on the dataset of the Job and the dataset should get deleted. Like this I want some more routines like, ED - edit dataset, BD - Browse dataset, LM - list the members in the PDS in the JOB, etc.
Thanking you, |
|
| Back to top |
|
 |
enrico-sorichetti
Global Moderator
Joined: 14 Mar 2007 Posts: 2560 Location: italy
|
|
|
|
| Quote: |
| I am new to REXX, so I do not have much idea on REXX. |
developing tools is not something easy if You do not have an idea of ...
also the whole set of questions did not clarify at all Your needs,
maybe they were clear to You but You were not able to extend this clarity around ...
| Quote: |
| The actual requirement is, I want to develop a REXX routine DS |
is that a requirement or a whim..... looks more like the second
also the issue is not at all spool, or anything similar related
is just a simple cursor driven data extraction from any ispf like panel
position the cursor on something that looks like a dataset name and,
hitting the proper function key perform some action
the issue has been debated with dubious results many many times
as a hint search the net for the vcursor snippet from Doug Nadel |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7505 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
Like this I want some more routines like, ED - edit dataset, BD - Browse dataset, LM - list the members in the PDS in the JOB, etc.
|
Keep in mind that the spool is not at all like a pds and cannot be accessed the same ways.
| Quote: |
| The actual requirement is, I want to develop a REXX routine DS |
Who determined this requirement (and the others you mentioned)? What business reason is there for this?
Spool entries should be looked at, possibly printed, and deleted - there should be no editing of spool entries. . . |
|
| Back to top |
|
 |
Anuj D.
Senior Member
Joined: 22 Apr 2006 Posts: 1705 Location: Mumbai, India
|
|
|
|
| dick scherrer wrote: |
| Spool entries should be looked at, possibly printed, and deleted - there should be no editing of spool entries. . . |
Yup they are to check the status of some "run"..otherwise why IBM licensed program has been given a name "System Display And Search Facility", they could have done with it by something like SDEF - "System Data And Edit Facility" ..
P.S.: Sorry, I know my reply in this thread is just 'stupid' but it's one of the most ambitious (weird actually) requirement I've ever come across..or perhaps the explanation from the OP is not that well constructed.. |
|
| Back to top |
|
 |
krsk
New User
Joined: 24 Jun 2008 Posts: 16 Location: INDIA
|
|
|
|
Hello,
Sorry for being not able to describe the problem in the way everyone can understand......
Let me explain the problem once again.
See I have a REXX routine ED, for editing the dataset. What it does is, when I open some datasets like JCLs, which contain the names of other datasets in them, when I type ED in command line and place the cursor on the dataset name, that dataset gets opened in edit mode.
Now, I want a REXX routine, with which I can edit the datasets which are referred in the SPOOL outputs like JESJCL. How can it be done?
Thanking you, |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 457
|
|
|
|
Hi,
Bill mentioned it earlier, rather than selecting the job with an S, select it with SE, this will put you in EDIT mode and you should be able to use your MACROes.
Gerry |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7505 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
Now, I want a REXX routine, with which I can edit the datasets which are referred in the SPOOL outputs like JESJCL. How can it be done?
|
I believe we understand what you want. . . I also believe you cannot get what you say you want. . . .
Editing implies change. Data already spooled will not be changed by an editing session. Even if you enter the editor, i believe the closest you could get to what you seem to want is to save a copy in some dataset.
As i asked earlier and you have not yet answered - what business reason is there to do this? If we understood why this is needed, we might be able to offer better suggestions. |
|
| Back to top |
|
 |
|
|