Page 1 of 1

about WRITE statement

PostPosted: Sun Dec 07, 2008 9:29 am
by leon
question describ as following:
writing a record to a sequential file: write out-record from ws-out-record.
does it need the same size (record length) for out-record and ws-out-record,
if out-record<ws-out-record then what's happen?
if out-record>ws-out-record then wha't happen?
thank you!

Re: about WRITE statement

PostPosted: Sun Dec 07, 2008 9:32 am
by dick scherrer
Hello,

Technicaly, they do not have to be the same size. Having said that - make them the same size ;)

If they are not the same size either truncation (sending area longer) or blank padding (sending area shorter) will occur.

Re: about WRITE statement

PostPosted: Wed Dec 10, 2008 1:36 am
by leon
thank you very much!

Re: about WRITE statement

PostPosted: Wed Dec 10, 2008 1:58 am
by dick scherrer
You're welcome :)

d