| Author |
Odd initializing code
|
|
| Howard Brazee 2007-08-16, 6:55 pm |
| I put the following code in an IBM mainframe CoBOL program:
0100-INITIALIZE.
MOVE FUNCTION LOWER-CASE(QD-CODE)
TO QD-CODE.
MOVE FUNCTION LOWER-CASE(QM-GROUP-CODE)
TO QM-GROUP-CODE.
The reason for this is that I know that programmers in my environment
are used to using upper case. Sure we have programs with lower case
in them - but this guarantees that they don't accidentally change the
case (the file extracts data to be FTPd to another shop).
| |
| HeyBub 2007-08-16, 6:55 pm |
| Howard Brazee wrote:
> I put the following code in an IBM mainframe CoBOL program:
>
>
> 0100-INITIALIZE.
> MOVE FUNCTION LOWER-CASE(QD-CODE)
> TO QD-CODE.
> MOVE FUNCTION LOWER-CASE(QM-GROUP-CODE)
> TO QM-GROUP-CODE.
>
>
> The reason for this is that I know that programmers in my environment
> are used to using upper case. Sure we have programs with lower case
> in them - but this guarantees that they don't accidentally change the
> case (the file extracts data to be FTPd to another shop).
What's odd?
| |
| Michael Mattias 2007-08-16, 6:55 pm |
| "Howard Brazee" <howard@brazee.net> wrote in message
news:bgc9c3t6nab24gmaqo2g2bb130hij0kk16@
4ax.com...
>I put the following code in an IBM mainframe CoBOL program:
>
>
> 0100-INITIALIZE.
> MOVE FUNCTION LOWER-CASE(QD-CODE)
> TO QD-CODE.
> MOVE FUNCTION LOWER-CASE(QM-GROUP-CODE)
> TO QM-GROUP-CODE.
>
>
> The reason for this is that I know that programmers in my environment
> are used to using upper case....
OH COME ON. NOBODY IS MARRIED TO ALL UPPERCASE ANYMORE.
MCM
| |
| HeyBub 2007-08-16, 9:55 pm |
| Michael Mattias wrote:
> "Howard Brazee" <howard@brazee.net> wrote in message
> news:bgc9c3t6nab24gmaqo2g2bb130hij0kk16@
4ax.com...
>
> OH COME ON. NOBODY IS MARRIED TO ALL UPPERCASE ANYMORE.
It's better than:
If QD-CODE = 'ADD'
or = 'add'
or = 'Add'
or = 'ADd'
or = 'AdD'
or = 'aDd'
or = 'adD'
or = 'aDD'
....
I shudder if the op-code were "update" ... or even "capitalize"
| |
| Pete Dashwood 2007-08-16, 9:55 pm |
|
"Michael Mattias" <mmattias@talsystems.com> wrote in message
news:P55xi.1306$i75.1018@newssvr19.news.prodigy.net...
> "Howard Brazee" <howard@brazee.net> wrote in message
> news:bgc9c3t6nab24gmaqo2g2bb130hij0kk16@
4ax.com...
>
> OH COME ON. NOBODY IS MARRIED TO ALL UPPERCASE ANYMORE.
>
> MCM
>
>
Please don't make personal remarks about my ex-wife... :-)
Pete
--
"I used to write COBOL...now I can do anything."
| |
|
| HeyBub wrote:
> Howard Brazee wrote:
>
> What's odd?
I was thinking the same thing... :)
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ / \/ _ o ~ Live from Albuquerque, NM! ~
~ _ /\ | ~ ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ Business E-mail ~ daniel @ "Business Website" below ~
~ Business Website ~ http://www.djs-consulting.com ~
~ Tech Blog ~ http://www.djs-consulting.com/linux/blog ~
~ Personal E-mail ~ "Personal Blog" as e-mail address ~
~ Personal Blog ~ http://daniel.summershome.org ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~
GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ !O M--
V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e h---- r+++ z++++
"Who is more irrational? A man who believes in a God he doesn't see,
or a man who's offended by a God he doesn't believe in?" - Brad Stine
| |
| HeyBub 2007-08-17, 6:55 pm |
| Michael Mattias wrote:
> "Howard Brazee" <howard@brazee.net> wrote in message
> news:bgc9c3t6nab24gmaqo2g2bb130hij0kk16@
4ax.com...
>
> OH COME ON. NOBODY IS MARRIED TO ALL UPPERCASE ANYMORE.
Must be why he specified LOWER case.
|
|
|
|