From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8b28e175da9e302,start X-Google-Attributes: gidf7344,public X-Google-Thread: f7cd1,8b28e175da9e302,start X-Google-Attributes: gidf7cd1,public X-Google-Thread: 1164f8,8b28e175da9e302,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-09-22 07:25:10 PST Xref: sparky comp.os.vms:15424 vmsnet.misc:848 comp.sys.dec:5135 Path: sparky!uunet!dove!dove.nist.gov!przemek From: przemek@rrdstrad.nist.gov (Przemek Klosowski) Newsgroups: comp.os.vms,vmsnet.misc,comp.sys.dec Subject: Changing record length of fixed record files Message-ID: Date: 22 Sep 92 20:06:09 GMT Sender: news@dove.nist.gov Followup-To: comp.os.vms Organization: U. of Maryland/NIST Hello! I am working on a problem that involves exchanging files between VMS and Ultrix computers. The data file is fixed record/320 byte on VMS side; I copy it over to Ultrix, massage gently and send back to VMS using binary mode (actually I open pipe to dcp -i if it matters). Unfortunately, the file appears on the VMS side as fixed record/512 byte file, which does not do. I was told by DEC telephone support that dcp is the only supported DECnet tool between VMS and Ultrix, and it does not seem to allow setting the VMS RMS parameters. I therefore assume that I can't transfer the file so that it ends up in the correct 320 byte record length. Does anyone have better ideas for executing this transfer? I have control over the FORTRAN program that reads the data on the VMS side. Ideally, I would like to INQUIRE about the record length, and if it is 512 (meaning that this particular file was received from outside), I would like to change the record length. I am able to do this using the FILE utility from DCL; what I would like to do is to change it on the fly from my program (code fragment to do that would be appreciated) I included comp.sys.dec in the distribution in a hope that maybe someone could suggest another method of transferring the file that would result in a correct VMS format, making the manipulations in the above paragraph unnecessary. Thank you for your help -- przemek klosowski (przemek@rrdstrad.nist.gov) Reactor Division (bldg. 235), E111 National Institute of Standards and Technology Gaithersburg, MD 20899, USA (301) 975 6249