IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Periods in COBOL.
The language was extended somewhat from the original designs and the way the period ends IF statements and such happened a bit by accident. It causes just the sort of bugs you're seeing now.

Looking [link|http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/AM0C1002/CCONTENTS?DT=19921218100410|http://publibz.bould...DT=19921218100410] I see that the *both* IFs are terminated by the single period. Your Russian colleague is correct. Technically, your nested IF is not legal.

Other IBM COBOL resources: [link|http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/AM0C1002/CCONTENTS?DT=19921218100410|http://publibz.bould...DT=19921218100410]

Wade.

Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please

-- "Anything but Ordinary" by Avril Lavigne.

New Thanks
\n Note:  When the ELSE phrase is omitted, all statements following the\n   condition and preceding the corresponding END-IF or the separator period\n   for the sentence are considered to be part of statement-1.\n


10,000 line of code.

Not one END-IF.

Kill me now.
New When I said 'I think'
I meant what I said.
[link|http://forfree.sytes.net|
]
Imric's Tips for Living
  • Paranoia Is a Survival Trait
  • Pessimists are never disappointed - but sometimes, if they are very lucky, they can be pleasantly surprised...
  • Even though everyone is out to get you, it doesn't matter unless you let them win.


Nothing is as simple as it seems in the beginning,
As hopeless as it seems in the middle,
Or as finished as it seems in the end.
 
 
New END-IF is relatively new.
I do remember my COBOL days enough to recall that as soon as you use nearly anything added to it after the original design - like nested IFs - it goes hairy.

Wade.

Is it enough to love
Is it enough to breathe
Somebody rip my heart out
And leave me here to bleed
 
Is it enough to die
Somebody save my life
I'd rather be Anything but Ordinary
Please

-- "Anything but Ordinary" by Avril Lavigne.

     Evil COBOL question - (broomberg) - (19)
         Somewhere around 1967? -NT - (ChrisR)
         Isn't COBOL scoped by indentation? - (ben_tilly) - (2)
             No. By "PERIOD" -NT - (broomberg) - (1)
                 A pox upon you for even knowing that. -NT - (mmoffitt)
         MOVE CUCBOM-KIT (BKI) TO OUT-KIT-NAME. - (imric)
         C'mon people - (broomberg) - (11)
             Can't you write a small test program and experiment? -NT - (ben_tilly) - (3)
                 Too ignorant - (broomberg) - (2)
                     Re: Too ignorant - (a6l6e6x) - (1)
                         Nested if... -NT - (imric)
             Periods in COBOL. - (static) - (3)
                 Thanks - (broomberg) - (2)
                     When I said 'I think' - (imric)
                     END-IF is relatively new. - (static)
             You need Meerkat's COBOL-fu. -NT - (pwhysall) - (1)
                 Darnit, I've been a bit slow to catch up :( -NT - (Meerkat)
             Ш сфт щаау - (Arkadiy)
         Dupe - ignore - (broomberg)
         <obCrackMonkey>Ha Ha COBOL</obCrackMonkey> -NT - (pwhysall)

Don't be too quick to award him the prize. It's only Thursday.
52 ms