On Fri, 27 Dec 2019 22:55:35 +0000, Frank Swarbrick
<[email protected]> wrote abour VSAM record length 0:

> So I am trying to copy sequential file to a VSAM ESDS.  One of the
> lines in the source file has a record length of zero.  Apparently
> VSAM does not support zero-length records?  Can this be true?

It is true. The Record Descriptor Field at the high address end of the
Control Interval cannot be zero.

> This blank line has "meaning".  What are my options?

Append a CRC (or similar checksum) to each record -- you can pretend
it's for data integrity checking -- and for the zero-length record just
write the CRC. Just remember to strip the CRC when you read the dataset
back again.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
[email protected] (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to