Subject: | |
From: | |
Reply To: | Emerson, Tom |
Date: | Wed, 29 Sep 2004 14:56:47 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> -----Original Message-----
> Dave Vorgang <[log in to unmask]> wrote in
> message news:<[log in to unmask]>...
> > Yes, you are correct. Removing the record contains and the occurs
> > statement fixed the problem.
> >
> > -----Original Message-----
> > Behalf Of Robert J. Schlosser
> >
> > Have you tried removing the occurs and the record contains
> clauses. This
> > would then match your input file.
> > Dave Vorgang <[log in to unmask]>
> >
> > I am having a problem reading a file in COBOL which contains the
> > following records:
> > 2004092420041005
> > 2004120320041214
> > 2005022520050308
> > 2005042920050510
> >
[...]
Although you've found and fixed the problem, one other often perplexing situation is when you try to verify your input file using the editor -- unless told otherwise, it will see this as a "numbered" file and drop the last 8 characters (and then complain about either duplicated or out-of-sequence line numbers) Your program may ACTUALLY see all of the data, but "other bugs" will exist, and in attempting to debug the program, you'll inevitably decide to check the input data and think "Aha!!! it's not reading all the data!"
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|