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: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-ArrivalTime: 1994-03-02 07:59:44 PST Xref: gmd.de comp.org.decus:2527 comp.os.vms:41291 comp.sys.dec:13738 comp.unix.advocacy:744 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!convex!seas.smu.edu!mic!dp7up!usenet From: xmdpeph@fs2.dp7up.com Subject: Re: Is VMS Dying? Message-ID: Sender: usenet@dp7up.com (News Administration account) Organization: Dr Pepper / The Seven-Up Co. X-Newsreader: AIR News 2.0 (SPRY, Inc.) Date: Wed, 2 Mar 1994 15:59:44 GMT In article <2l0k63$5a6@pyrtech.mis.pyramid.com>, bsalem@pyrtech.mis.pyramid.com (Bruce Salem) writes: >In article xmdpeph@fs2.dp7up.com writes: >>(not defending Carl's posts) >> >>I think that his point is that under VMS files have a structure that is >>independant of the applications involved. For example, if you are given >>a file with no other information about it you can (with no other >>information) view the file as a groupof records (you wouldn't need to >>know that ETX is the record separator). VMS offers a number of different >>file formats to suit different needs. VMS also supports non-structured >>(Unix-like) files that are simply a stream of bytes -- it is then up to >>the application to deal with the data. > > 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 toopen, >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. >My gripe was that I had to determine the modes before I could open >the file, not let some utilitytell me the modes. > I'm not sure what you're referring to here. I did VAX Fortran for a number of years. When you open afile, you can specify the access type (indexed, relative, sequential, etc), but this is the program's view not necessarily thephysical file's attributes (you can open an indexed file as sequential just fine -- the same program will run weather the file is indexed, relative, or sequential). You can also specify record characteristics (such as fixed length or variable), but these are only needed if you are creating new files (and you get a default if you don't specify). If you open an existing file, the program will get this information at OPEN time from RMS. I'm not disputing your arguement, but I would like more info on what you view as the problem. >>VMS also offers different types of files, including indexed (without >>additional software). This is significant, the indexes are supported >>directly by VMS -- if I move the file to another VMS machine it will >>still work, if I don't have the application I can still do something with >>it, etc. In addition all utilities and applications will support the >>indexed file (if they open it sequentially they will just get the records >>back in the pre-defined order). > > 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 tood >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 Ineed to do this quickly. > It depends on how you move it. I use a the convert utility to move it and I get a sequential file with line-feeds (in sorted order). If you are trying to process the file in-place (without moving it) with, say, NFS, you are right, you will have problems. Is the answer to go to the lowest common denominator, thus eliminating the use of features? >>I find itinteresting that the industry has 2 opposite trends. The >>relational group that insists that data should be independant of program >>(more like the VMS approach) and the Unix group that says that operating >>systems should stay out of the data business, that's an application issue. > > People like to complain that UNIX files are just streams of >bytes and that files have no internal structure imposed by the OS, leaving >too much up to the application. I am no filesystem expert, but large >database applications can have their own specially constructed filesystems >under UNIX to get the performance of indexed file structures, B+ trees and >the like. > No complaints, just an observation of trends. Different operating systems are better suited for different things.