Code Comments
Programming Forum and web based access to our favorite programming groups.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).
Post Follow-up to this messageHoward 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?
Post Follow-up to this message"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
Post Follow-up to this messageMichael 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"
Post Follow-up to this message"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."
Post Follow-up to this messageHeyBub 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
Post Follow-up to this messageMichael 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.
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.