Hello Charles,
I'm not sure, if that's your only choice, but in any case that's a choice.
That is in my experience what happends if you open the file
using fopen (filename, "wb,recfm=vb").
Not sure what will happen, if you open the file using fopen (filename,
"wb")
without the recfm=fb appended; don't know if then you will be able to
construct
the llbb control words etc. yourself. Or: if there are other settings
for recfm etc.
parameters that will allow you to do this.
I believe that there is some documentation "somewhere" covering those
topics.
I would try it with an input VB dataset and look what happens if
recvm=vb is omitted.
(I always used the approach with recfm=vb so far and found it very
convenient).
Kind regards
Bernd
Am 27.07.2013 13:52, schrieb Charles Mills:
Am I correct in my reading of the C manuals? (I find the information
somewhat scattered and oddly organized.)
If I want to write a typical old-fashioned z/OS dataset in format VB and
that contains binary fields in a field-oriented record layout, then (1) my
only choice is to use fwrite() (or one of its variants) and (2) I would
declare the struct and construct the record *without* the llbb control word
and specify the length of the record (without the llbb) only in the
fwrite()?
Charles
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN