[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fwd: gnubol: Record delimiter clause and parse order]
Is spanned, still a file type? Back in the bad old days, COBOL 74 on 370's you had to use spanned as a sequential file type if a record was larger than 32K.
For variable length records, does the spec. call for full word padding? I'm trying to recall, from my mainframe days, and I believe the records were not padded?
The sequential files has to be platform independent, so you can read the file produced by any compiler on any machine. The conversion of big little endian data is still up the
programmer. This does not include line sequential which is not platform independent.
Do you still have the record type 'undefined'? This was usually used with tape files. The I-O routines delivered a block of data into buffer up to the defined size of the buffer. I do
not remember what happened when a block was longer than record size.
Cheers,
Ralph Jones
Tim Josling wrote:
> Matthew,
>
> Good. So
>
> - line sequential = records followed by "end of line delimiter" =
> LF, CRLF, CR depending on the platform. No extra padding at end.
> - fixed length = records stacked one after another, no record
> header, no delimiter.
> - variable - 128 bytes of slop (including date/time stamps by the
> look) followed by the records. The record format looks like this
>
> x'40' byte(length) data
> The data is padded to make the record length a multiple of 4
> bytes. The padding seems to vary, sometimes spaces, sometimes
> x'00'.
>
> It would be useful to try variable length non line sequential
> with record length
>
> > 127
>
> > 256
>
> >32k
>
> >64k
>
> Without the doc of the 128 bytes we cannot create a file that MF
> will read (other than by just copying one of their headers byte
> for byte), though we can read their files. I will have a look for
> conversion routines.
>
> Maybe we should just use s 4 byte word as the record header (at
> least as one option).
>
> Tim Josling
--
This message was sent through the gnu-cobol mailing list. To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body. For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.