Shawn Gordon wrote:
>
> HI all, I was wondering if anyone could give me an example of using HPFOPEN
> in COBOL to write to a byte stream file. Is the FWRITE any different? I
> have been writing portable code (CM and NM) for so long that I never got
> around to using the HPFOPEN intrinsic, and it looked pretty intense.
I'm not so sure that you really can, unless you use pure intrinsics.
The bytestream files are essentially variable-length files, but no
native COBOL methods deal with traditional variable length files
(without imbedded OCCURS....DEPENDING ON... clauses which bytestream
files don't fit). You should be able to use "pure" intrinsics to create
them.
It would seem much easier to create variable-length files (which shell
programs will interpret as bytestreams).
Jeff Kell <[log in to unmask]>