At 01:17 PM 6/10/2002 +0100, BAZLEY, Sebastian wrote: >The file can be read OK in DCL with TYPE/CONT, and in Perl: > > open IN, "TYPE/CONT |"; > >works OK, except that we haven't found how to terminate the sub-process >without exitting the Perl script.
Closing IN doesn't do that? >However, it would be nice if we could read the file directly from Perl, e.g. >with the appropriate vmsopen() call from VMS::Stdio. We've tried "shr=put", >but cannot seem to read beyond the initial end of the file. Hmm. I think VMS::IndexedFile can do sequential reads, i.e., I don't know if the file really has to be indexed. Its only advantage for your problem is that it's using RMS calls rather than C library calls, which may or may not be a way around what you are seeing. I don't really know why you are seeing the behavior you get but it would be interesting to know if it's reproducible with a simple C example.
