Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Odd initializing code
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).

Report this thread to moderator Post Follow-up to this message
Old Post
Howard Brazee
08-16-07 11:55 PM


Re: Odd initializing code
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?



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
08-16-07 11:55 PM


Re: Odd initializing code
"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




Report this thread to moderator Post Follow-up to this message
Old Post
Michael Mattias
08-16-07 11:55 PM


Re: Odd initializing code
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"



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
08-17-07 02:55 AM


Re: Odd initializing code

"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."



Report this thread to moderator Post Follow-up to this message
Old Post
Pete Dashwood
08-17-07 02:55 AM


Re: Odd initializing code
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

Report this thread to moderator Post Follow-up to this message
Old Post
LX-i
08-17-07 08:55 AM


Re: Odd initializing code
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.



Report this thread to moderator Post Follow-up to this message
Old Post
HeyBub
08-17-07 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:58 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.