Bob Bridges
2021-06-27 19:52:21 UTC
Gil's post (see below) on IBM-MAIN reminds me of something I see repeatedly, code written like this:
000_MAIN:
CALL 0100_INITIALIZE
CALL 0200_PROCESS
CALL 0900_TERMINATE
EXIT
0100_INITIALIZE:
CALL 0110_OPEN_FILES
CALL 0120_INITIALIZE_VALUES
...and so on. Obviously this is a COBOL programmer thinking in COBOL.
I don't see any point in ranting against this style of coding. It obviously can run correctly, and I can't see that it'd run any slower or even be harder to understand than my style of REXX coding. I would never write that way, but then I never learned to love COBOL, despite the decade or two I spent using it (and despite its admitted strengths). Mostly when I inherit a program written like this, I sigh -- and if I have to modify it, I add code in my style, but leave the rest of the program alone.
But I'm looking at Gil's code below, and it reminds me that different REXXers have different ideas about capitalization. I've seen a good many REXX programs in which the program instructions and keywords have their initial letter capitalized:
If Pos(mystring,3,2) = "XX" Then Do...
And a few in which they're in all caps. Gil apparently uses all-caps for at least some variable names (though maybe not all; I don't know). I suspect that these folks, too, come to REXX from some other language and are, consciously or reflexively, imposing good coding standards on their REXX programs that they learned elsewhere.
But where? What language(s) are implied by the different styles of REXX code you've seen? My own repertoire is pretty limited; I don't think I've written in more than a dozen or two languages over the course of my career, and I'm dead certain from things I've read here and in IBM-MAIN that lots of you surpass that by heroic bounds.
---
Bob Bridges, ***@gmail.com, cell 336 382-7313
/* What's the difference between a bad golfer and a bad skydiver?
A bad golfer goes <whack> "Damn!"
A bad skydiver goes "Damn!" <whack> */
-----Original Message-----
From: IBM Mainframe Discussion List <IBM-***@LISTSERV.UA.EDU> On Behalf Of Paul Gilmartin
Sent: Sunday, June 27, 2021 14:52
FWIW, I prefer coding
say 'Result =' RESULT
...
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX
000_MAIN:
CALL 0100_INITIALIZE
CALL 0200_PROCESS
CALL 0900_TERMINATE
EXIT
0100_INITIALIZE:
CALL 0110_OPEN_FILES
CALL 0120_INITIALIZE_VALUES
...and so on. Obviously this is a COBOL programmer thinking in COBOL.
I don't see any point in ranting against this style of coding. It obviously can run correctly, and I can't see that it'd run any slower or even be harder to understand than my style of REXX coding. I would never write that way, but then I never learned to love COBOL, despite the decade or two I spent using it (and despite its admitted strengths). Mostly when I inherit a program written like this, I sigh -- and if I have to modify it, I add code in my style, but leave the rest of the program alone.
But I'm looking at Gil's code below, and it reminds me that different REXXers have different ideas about capitalization. I've seen a good many REXX programs in which the program instructions and keywords have their initial letter capitalized:
If Pos(mystring,3,2) = "XX" Then Do...
And a few in which they're in all caps. Gil apparently uses all-caps for at least some variable names (though maybe not all; I don't know). I suspect that these folks, too, come to REXX from some other language and are, consciously or reflexively, imposing good coding standards on their REXX programs that they learned elsewhere.
But where? What language(s) are implied by the different styles of REXX code you've seen? My own repertoire is pretty limited; I don't think I've written in more than a dozen or two languages over the course of my career, and I'm dead certain from things I've read here and in IBM-MAIN that lots of you surpass that by heroic bounds.
---
Bob Bridges, ***@gmail.com, cell 336 382-7313
/* What's the difference between a bad golfer and a bad skydiver?
A bad golfer goes <whack> "Damn!"
A bad skydiver goes "Damn!" <whack> */
-----Original Message-----
From: IBM Mainframe Discussion List <IBM-***@LISTSERV.UA.EDU> On Behalf Of Paul Gilmartin
Sent: Sunday, June 27, 2021 14:52
FWIW, I prefer coding
say 'Result =' RESULT
...
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to ***@VM.MARIST.EDU with the message: INFO TSO-REXX