|
From: | Robert Wolfe |
Subject: | Re: [open-cobol-list] RANDOM-ly non-random |
Date: | Thu, 30 May 2013 16:37:08 +0000 |
Odd, because when I go to compile this code, I get this:
address@hidden:~$ cobc random.cbl random.cbl: In paragraph 'Main': random.cbl:11: Error: syntax error, unexpected PERFORM, expecting ADDRESS or "Identifier" System is Debian 7 "Wheezy" AMD64 running in an ESXi 5 virtual machine. From: Bruce M. Axtens
Sent: Thursday, May 30, 2013 9:30 AM To: address@hidden Subject: [open-cobol-list] RANDOM-ly non-random Context: MinGW
$ uname -a Sadly, I don't get to do much COBOL. The best I can do is the occasional RosettaCode task. I was looking at <http://rosettacode.org/wiki/Loops/Break#COBOL>. I copied and pasted into a text editor, made it free-form, and started to fiddle. I've got as far as this: IDENTIFICATION DIVISION.The END-PROGRAM seemed to be mandatory. I wouldn't compile otherwise. The thing that has me confused (and thus all the fiddling with RANDOM) is that the program runs properly occasionally, and other time just gets locked on a particular value and doesn't change. A working runs looks like this: $ breakloop.exe but another run starts off nicely, but then gets stuck $ breakloop.exeWhy is it so? Kind regards, Bruce. |
[Prev in Thread] | Current Thread | [Next in Thread] |