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 C'mon people
I NEED THIS.

I really do not KNOW.

Based on the number of periods, a failed test should start AFTER the
\nMOVE CUCBOM-KIT (BKI)       TO  ADD-KIT.\n

Which contradicts the ovbious intended logic.
And NO, I cannot TEST this, it is a snippet of a 10,000 line
program that I don't even know how to compile, let alone run.

My inhouse COBOL person told me it starts on the MOVE, not
after it. Of course, he was talking with a VERY heavy
Russian accent, and I'm not really sure I ever understand
him.

He could not explain the issue of the PERIOD scoping.

My goal here is to pull enough business logic to duplicate
the functionality of this program. This means I will need
to get to the point where I will run the data against mine,
they run against theirs, and we compare.

when they are different (AND THEY WILL BE), I need to be able
to read enough of the COBOL to figure why.

But in this case, it feels like the COBOL program has
a bug. So can anyone tell me for sure?

New Can't you write a small test program and experiment?
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
New Too ignorant
These are the missing pieces for me to do that:

Learn how to login to the editor (which is different from my current interface).
Create a file.
Create a syntactically correct COBOL program.
Compile it.
Link it.
Save it to a library that I can execute from.
Create the associated JCL to run it.
Submit it.
Figure out how to access the MF logs.
Go through the INCREDIBLY PAINFUL debugging cycle as I work through the JCL issues that I screwed up.

Lose 2 weeks of my life to a task I hope to never repeat.
The editor make me long for the days of edlin.
JCL debugging is as close to torture as you can get.

I've done most of the above, in multiple pieces over the last 5 years. Last time was about a year ago. It was horrible.

I'd rather whine here, since I know SOME of you are past
COBOL programmers. I'll also forward the code to a couple
of other people as well.

New Re: Too ignorant
Look [link|http://www.csis.ul.ie/cobol/Course/Selection.htm#part1|here].

When there is no END-IF, IF scope is terminated by a period.

That means (nested IFs notwithstanding) the one in line:

GO TO 400-EXIT.

Read the text at the link.

As with girls, a missing period could mean a serious problem.
Alex

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. -- Bertrand Russell
New Nested if...
[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 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.

New You need Meerkat's COBOL-fu.


Peter
[link|http://www.ubuntulinux.org|Ubuntu Linux]
[link|http://www.kuro5hin.org|There is no K5 Cabal]
[link|http://guildenstern.dyndns.org|Home]
Use P2P for legitimate purposes!
New Darnit, I've been a bit slow to catch up :(
Two out of three people wonder where the other one is.
New Ш сфт щаау
That is, "I can offer translation services". :)
--


And what are we doing when the two most powerful nations on earth -- America and Israel -- stomp on the elementary rights of human beings?

-- letter to the editor from W. Ostermeier, Liechtenstein

     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)

Crazy moon-lovers!
128 ms