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-07 12:34:41 PST Xref: gmd.de comp.org.decus:2674 comp.os.vms:41710 comp.sys.dec:13954 comp.unix.advocacy:890 Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!ub!news.kei.com!hookup!usc!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Date: 7 Mar 1994 20:34:41 GMT Organization: HST Wide Field/Planetary Camera Distribution: world Message-ID: <2lg351$419@gap.cco.caltech.edu> References: <1994Feb26.204059.4068@mixcom.mixcom.com> <2lafhn$46u@gap.cco.caltech.edu> <1994Mar6.154156.17891@dxcern.cern.ch> <2ld0g0$dso@gap.cco.caltech.edu>,<1994Mar7.142957.18455@dxcern.cern.ch> Reply-To: carl@SOL1.GPS.CALTECH.EDU NNTP-Posting-Host: sol1.gps.caltech.edu In article <1994Mar7.142957.18455@dxcern.cern.ch>, lishka@dxcern.cern.ch (Chris Lishka) writes: =Six of one, half dozen of the other. I >like< the fact that Unix =makes no attempt to force a tape into the filesystem view. In Unix a =tape is a tape. In VMS, a tape is a simple ANSI tape if mounted =foreign, or a really bizarre subset of FILES-11 if mounted normally. No. If mounted foreign it's a simple tape. It need not have ANSI labels. If mounted normally, it's a simple ANSI tape whose files VMS refers to using FILES-11 syntax. Dealing with ANSI tapes is a relatively new development for Unix. =Certainly. Here "DEFINE/USER SYS$OUTPUT ..." works fine. = = $ = $ create zfoo.txt = 1 = 2 = 3 = *EXIT* = $ open/append myfile zfoo.txt = $ define/user sys$output myfile = $ dir = $ close myfile = $ type zfoo.txt = 1 = 2 = 3 = = Directory DISK$USER:[TESTUSER] = = LOGIN.COM;1 MAIL.MAI;1 ZFOO.TXT;1 = = Total of 3 files. = $ = =Here, "DEFINE SYS$OUTPUT ..." doesn't seem to work as I would expect =(based on the DEFINE/USER example above): = = $ create zfoo.txt = 4 = 5 = 6 = $ open/append myfile zfoo.txt = $ define sys$output myfile = %DCL-E-OPENOUT, error opening MYFILE:.; as output = -RMS-F-RAT, invalid record attributes = $ close myfile = =Why is there a difference in how DEFINE/USER and DEFINE treat the =second parameter? Because defining SYS$OUTPUT in supervisor mode creates the file. Defining it in user mode simply causes a logical name definition. A user-mode logical name lasts only until the next image termination. User-mode logical names are primarily intended for use by images. A supervisor-mode logical name stays around until you specifically deassign the logical name. For a supervisor mode definition of SYS$OUTPUT to work properly, DCL must open the file; otherwise you'd be opening a different file for each image you invoke. For a user-mode definition, the image opens the file. =Another example. The following doesn't work: = = $ dir = %DIRECT-W-NOFILES, no files found = $ create testme.com = $ write sys$output "Inside testme.com" = Exit = $ define/user sys$output zfoo.txt = $ @testme = %DCL-W-UNDFIL, file has not been opened by DCL - check logical name = $ dir = = Directory SCRATCH$DAY:[TESTUSER] = = TESTME.COM;1 ZFOO.TXT;1 = = Total of 2 files. = $ type zfoo.txt = %DCL-W-UNDFIL, file has not been opened by DCL - check logical name = $ Again, because you've defined a user-mode logical name, DCL doesn't immediately create the file. However, when it has to write to SYS$OUTPUT to deliver the error message, that forces it to open the file. =However, this does work: = = $ dir = %DIRECT-W-NOFILES, no files found = $ def/user sys$output zbar.txt = $ dir = $ dir = = Directory SCRATCH$DAY:[TESTUSER] = = ZBAR.TXT;1 = = Total of 1 file. = $ type zbar.txt = = Directory SCRATCH$DAY:[TESTUSER] = = ZBAR.TXT;1 = = Total of 1 file. = $ In that case, DIRECTORY opens the file pointed to by the user-mode definition of SYS$OUTPUT. =Presumably the first case didn't work because the file zfoo.txt had =not been explicitly opened by my DCL process for writing. Correct. =What I don't understand is why you (Carl) feel the need to criticize =personal preferences? I haven't been criticizing personal preferences. I've been criticizing misinformation posted to the net. If you can't tell the difference between: I prefer A to B. and I prefer A to B because B can't do C when, in fact B *CAN* do C, that's your problem. =p.s. Just out of curiosity, Carl, how many VMS machines do you manage = at your site? In the many postings I have read of yours, I've Four here, another nearby, and I provide support for the system managers of about a dozen others throughout the country. And the last line of your above paragraph didn't make it through. -------------------------------------------------------------------------------- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My understanding of astronomy is purely at the amateur level (or below). So unless what I'm saying is directly related to VAX/VMS, don't hold me or my organization responsible for it. If it IS related to VAX/VMS, you can try to hold me responsible for it, but my organization had nothing to do with it.