From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-02 08:38:48 PST Xref: gmd.de comp.org.decus:2825 comp.os.vms:41931 comp.sys.dec:14074 comp.unix.advocacy:969 Path: gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!wupost!decwrl!pa.dec.com!src.dec.com!crl.dec.com!jac.zko.dec.com!star.enet.dec.com!buda From: buda@star.enet.dec.com (Mark A. Buda) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Date: 2 Mar 1994 16:38:48 GMT Organization: OpenVMS Engineering Distribution: world Message-ID: <2l2feo$m8l@jac.zko.dec.com> References: <2l0k63$5a6@pyrtech.mis.pyramid.com> Reply-To: buda@star.enet.dec.com (Mark A. Buda) NNTP-Posting-Host: STAR X-Newsreader: mxrn 6.18-1 In article <2l0k63$5a6@pyrtech.mis.pyramid.com>, bsalem@pyrtech.mis.pyramid.com (Bruce Salem) writes: > My experience was in writing a F77 (DEC-FORTRAN) application >in 1987 that I had to know the modes of the file to get it to open, >that RMS was a layer of administration between me and my file, or a >file some other program had created. I don't mind displaying my >ignorance here, for your point about the different approaches to >files illustrates the tradeoffs well, you trade security for flexibility. Security for flexibility??? How does security get involved here??? >My gripe was that I had to determine the modes before I could open >the file, not let some utility tell me the modes. You do not have to determine modes I fyou plan on reading a file, just SYS$GET. Your example also fails on Unix. Try to have a 'vanilla' program that will read a B-tree file that it does not have knowledge of. If you do not have the library routines available, you are not able to access the file in a knowledgeable way. > What if I want to look at the file as a stream of bits? If >I move the file to a non-VMS system I am stuck. I still have to od >or dump it in hex to begin to figure out how it is structured and to >write an application which can treat it as an indexed file. I hope >that somewhere there is some code that I can install on my foreign >system just to read RMS indexed files, if I need to do this quickly. Quite easy... Open the file in block mode... Why would you want to open an indexed file as such to read the bits does not make sense whether on VMS or Unix (unless patching something). If you wish to have a file with a stream of bits, then go for it... Your argument about having to dump a file is logically flawed. A B-tree file on Unix has the SAME problem... In fact it is worse because you have no idea how it is formatted and how to access it. With RMS indexed files you can extract the records and put them into any file type you wish. Try that with Unix, without a lot of extra work. Moving a file from OpenVMS to unix is easy, but moving some B-tree file to OpenVMS can be very hard unless the tools are provided. I suggest you read some of the manuals and learn more about the subject before trying to stand up for Unix. So far you have shown why OpenVMS is far superios to Unix... Enjoy, - mark