IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Rexx formatting


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JPVRoff

New User


Joined: 06 Oct 2009
Posts: 41
Location: Melbourne, Australia

PostPosted: Wed May 10, 2023 6:38 am
Reply with quote

Many years ago, I wrote a Rexx formatter that would compress or expand the lines of a Rexx program. Back in VM days, I think. Unfortunately, when I went travelling (and worked on FACOM), I lost this. And subsequent attempts to redo it have run up against a lack of time and/or will to get it done right.

Does anyone know of, or have, something like this? My current one unpacks properly, but only if you have a very long, variable length, record (as I must not have written something to split line if they're too big). And it doesn't justify based on the number of do/select/end in place...

Not urgent, but I thought I might expand some of my Rexxes (or at least have the option) for when I retire. As the compressed ones are not necessarily the easiest for those who might come after me!
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2569
Location: Silicon Valley

PostPosted: Wed May 10, 2023 7:42 am
Reply with quote

I am not aware of any such tools.

But it might be helpful to use the ISPF editor and specify the highlight commands:
Code:
HI ON
HI REXX
HI LOGIC
HI PAREN

And also set a PF key to be: :TS
and then use by moving cursor to where you want to split a line and then press the PF key.

In a separate effort, try using VS CODE editor on Windows.
Back to top
View user's profile Send private message
JPVRoff

New User


Joined: 06 Oct 2009
Posts: 41
Location: Melbourne, Australia

PostPosted: Thu May 11, 2023 12:48 pm
Reply with quote

Pedro wrote:
I am not aware of any such tools.

But it might be helpful to use the ISPF editor and specify the highlight commands:
Code:
HI ON
HI REXX
HI LOGIC
HI PAREN

And also set a PF key to be: :TS
and then use by moving cursor to where you want to split a line and then press the PF key.

In a separate effort, try using VS CODE editor on Windows.

Thanks, Pedro.

Trying to avoid having to do it all manually, as most of the ones I want to format are well over 1000 lines (expanding to over 3000 when I only have one statement per line).

I've had a look at the last one I wrote and it seems to work, except I didn't complete the formatting section - so, for example, the if statements can extend to 100's of characters long. I guess I'll just have to work at it.

The other thing I put into it was the compression side, so it would be squeezed into the minimum possible space, yet still be executable Rexx. The idea was that someone would just run the macro to expand it...make their changes...save and test it...then compress it again to save space. I guess that's not so much of a problem nowadays. I think I even used LZW Rexx implementation to compress/decompress comments.

Damn! Looks like I'm going to have to try to re-invent the wheel. I might have them on one of those small floppy disks, but no way to read it any more!

Thanks for looking!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 alphabets in a REXX and fin... CLIST & REXX 2
No new posts Call an hlasm from REXX in batch and ... CLIST & REXX 4
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top