On Mon, 30 Dec 2019 16:05:37 +0100, R.S. wrote:

>W dniu 2019-12-27 o 23:55, Frank Swarbrick pisze:
>> 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?  This blank line has 
>> "meaning".  What are my options?
>
>First: THERE ARE NO RECORDS WITH LENGTH 0. Period.
>I repeat: there are no zero-length records.
>
>There are conventions to describe a record which has no data (no
>content). It can be CRLF for DOS/Windows text files. However there are
>CR and LF characters to describe the record, so the content is empty.
>Yes, empty record has 2 bytes of metadata. ...
>
Thank you for mentioning the distinction between metadata and content.

>It could be RDW which means 4 bytes for metadata, etc. etc.
>
And in DSORG=PS,RECFM=VB an RDW of x'00040000' is a record with
metadata and no content.

>Of course some conventions do not allow to put empty records. Is VSAM
>one of them? It depends: ESDS is one of them, ...
>
Might someone explain to the OP and me the format of ESDS metadata
that prohibits records with metadata but no content.  I struggled with
Using Data Sets and got lost.

(An analogy might be the biased count field in the MVC instruction that
can not refer to empty content.)

Thanks,
gil

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

Reply via email to