comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: BLOCK I/O mode in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: BLOCK I/O mode in IDL [message #271] Fri, 06 March 1992 11:22
alans is currently offline  alans
Messages: 12
Registered: September 1991
Junior Member
In article <28FEB199211431049@stars.gsfc.nasa.gov> thompson@stars.gsfc.nasa.gov (William Thompson, code 682.1, x2040) writes:


> IDL has a handy /BLOCK qualifier for the OPEN* procedures in VAX/VMS, as well
> as the POINT_LUN procedure to set the file pointer to a particular byte. Does
> anybody know what the FORTRAN and/or C equivalents would be for VAX/VMS?

It's been over a year since I've used VMS, so some of this may be outdated or
just plain wrong, but...

VAX FORTRAN:

open (unit=lun, name='whatever', form='unformatted',
& recordtype='fixed', organization='sequential',
& access='direct', et infinitum)
read (unit, recnum, data, etc.)

c (doesn't put you on a byte, but rather a record)

VAX C:
[very hazy on the open here]

fp = fopen ("name", "+rb");
fseek (fp, byte_offset, 0);

Hope it helps a little...
--
Alan J.Stein MIT/Lincoln Laboratory alans@ll.mit.edu
[Message index]
 
Read Message
Previous Topic: FITS binary table software for IDL
Next Topic: CALL_EXTERNAL with DEFAULT keyword in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 20:01:08 PDT 2025

Total time taken to generate the page: 0.08064 seconds