View previous topic :: View next topic |
Author |
Message |
misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Mon Sep 29, 2014 6:54 am Post subject: RDZ and running a Rexx script on current source code |
|
|
Here at work, we haven't got to the stage when anyone is "pretesting" RDZ (it's in the near future), so I can't experiment yet.
What I'm interested in is if anyone has written/customized existing z/OS edit scripts so they can be used in RDZ.
I've found examples online, but most of them seem to be along the lines of submitting some Rexx script in z/OS.
What I'm after (if it's doable) is some method of running a script that can do the equivalent of a normal edit script, for example, using LINE_BEFORE or similar to change the content of the current source code shown in an RDZ window.
For example, we have a script that inserts the name of all sections into a block of comment lines near the top of the code (deleting the existing block first)
From what I've read up on so far, it seems that existing scripts will have to be converted to Java which would be a real bummer. _________________ Michael |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Mon Sep 29, 2014 9:25 am Post subject: |
|
|
I'm looking for the same thing. I'd like to run an Edit Macro from within RDz, but haven't gotten an answer yet. Will let you know if/when I do. _________________ ....Terry |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Tue Sep 30, 2014 4:36 am Post subject: Couple of comments |
|
|
Reading the PDF, on page 18 it states Quote: | Your CLISTS may not be ISREDIT macros | .
The nearest I could see to what I was after was on page 85 but that wasn't really it either.
Like I mentioned, we have LOADS of edit macros that can manipulate the COBOL source code. NOt having access to them would be a real bummer.
When I run the equivalent macros on the PC, if I have some source code open (Mainframe Express in our case) and run a utility that changes the open source code, I always get a message stating that the code has been changed outside the editor and would I like to reload the code (to which I answer yes) _________________ Michael |
|
Back to top |
|
 |
William Collins Supermod
Joined: 03 Jun 2012 Posts: 437 Topics: 0
|
Posted: Tue Sep 30, 2014 5:49 am Post subject: |
|
|
If you dig a bit you may find that you can turn the question off, and allow it to automatically update the file if changed outside the editor (without you being "aware", except that you know you've just changed it and would rather like to have those changes in the editor).
I used to have the same thing with Eclipse, which I believe to be a close relation to the RDz software.
Can't tell you how I did it in Eclipse, I only discovered when I noticed it was no longer asking me this, and I did a search for why, and discovered there was an option. I probably accidentally clicked an icon in passing, but there are, well, several icons lying around, and not much to give a clue as to which it was  |
|
Back to top |
|
 |
misi01 Advanced
Joined: 02 Dec 2002 Posts: 629 Topics: 176 Location: Stockholm, Sweden
|
Posted: Tue Sep 30, 2014 6:04 am Post subject: Thanks William |
|
|
If that is the case, then I can just see the next problem being that you can read the source code using EXECIO, but you can't replace the code since RDZ is holding it.
(NB that I'm only guessing at this "problem". Sometimes the simplest, most obvious needs are the most difficult to implement) _________________ Michael |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Tue Sep 30, 2014 8:41 am Post subject: |
|
|
Thanks, kolusu. _________________ ....Terry |
|
Back to top |
|
 |
|
|