EC0N@TE.CC.CMU.EDU (Eric R. Crane) (01/14/86)
Would anyone out there know how to open a remote network file for output from Vax-C. I have been having trouble trying to use a file-spec of the: NODE"USER PASSWORD ACCT"::"STR:<DIR>NAME.EXT" - Eric R. Crane Carnegie-Mellon Univ -------
info-vax@ucbvax.UUCP (01/15/86)
After trying to making my assembler dael with this situation, it appeared to me that RMS should handle this for you. The file spec must be placed in a file access block (FAB) and/or a name block (NAM) and these structures given to the appropriate RMS routine. There is a section in the VAX11C maunal (Version 2) discussing how to do this, see Chapter 13, "Using VAX Record Managment Services (RMS)", of the manual. I have not had a chance to work more with this, but will be in the very near future. Please let me know if you're successful. Thanks in advance. Jim Bigelow ...!tektronix!copper!jimbi
LEICHTER-JERRY@YALE.ARPA (01/17/86)
Would anyone out there know how to open a remote network file for output from Vax-C. I have been having trouble trying to use a file-spec of the: NODE"USER PASSWORD ACCT"::"STR:<DIR>NAME.EXT" - Eric R. Crane Carnegie-Mellon Univ ------- There isn't enough information here to be sure, but: IF you are using the VAX C I/O library (rather than doing RMS stuff directly), AND you are running VAX C V1, this doesn't work. (The problem is, I think, mainly due to problems that DECnet had with STREAM files, but there are probably other things going on.) In VAX C V2, this should work correctly. -- Jerry -------
info-vax@ucbvax.UUCP (01/20/86)
I thought that there's a blurb in the VAX/C version 2 manual that remote network files aren't accessible to the "UNIX" I/O calls that DEC has so bizarrely (word?) implemented. I suppose you could always (ACK! GACK! CHOKE!) use VMS system services, but that is generally a pain worth avoiding. Have you noticed what a poor cousin VAX C is to the other VMS languages? It really burns me up not to find all the system service variable definitions in VAX C include files while they are distributed with more "favored" languages like VAX Fortran. DEC's reply is to submit an SPR! What gall! Good luck. I'd be interested in finding out if you get it to work...