HP3000-L Archives

August 1996, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Fri, 30 Aug 1996 21:58:24 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (19 lines)
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]>

ATOM RSS1 RSS2