From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,3db1f076154b6fe,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,3db1f076154b6fe,start X-Google-Attributes: gid1164f8,public From: fairfield@sldb4.slac.stanford.edu Subject: Re: Now you see me, now you don't Date: 1999/05/05 Message-ID: <1999May5.181300.1@sldb4.slac.stanford.edu>#1/1 X-Deja-AN: 474553018 References: <7gqnuu$br4$1@cantuc.canterbury.ac.nz> Organization: Stanford Linear Accelerator Center Newsgroups: comp.os.vms,comp.sys.dec In article <7gqnuu$br4$1@cantuc.canterbury.ac.nz>, E.Havelaar@Regy.Canterbury.Ac.NZ (Ed Havelaar) writes: > I was having a little trouble creating a file with a script: > > > > $ pid == f$getjpi("","PID") > $ > $ def data_out "$$campwork:intl_''pid'.dat" > $ > $CREATE DATA_OUT > HI THERE > $type data_out > %TYPE-W-SEARCHFAIL, error searching for UOC$PIGGY:[CAMPUS.WORK]INTL_2240066F.DAT; > -RMS-E-FNF, file not found > $EXIT > > > > Okay, fine I thought -- I have turned the error messages off. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is a very strange statement, IMHO. Why in the world do you turn off error messages?! And if you _really_ had turned them off, how in the world would you have gotten the %TYPE-W-SEARCHFAIL,... message?? In any case, your DCL indicates a small confusion between symbols and logical names. Were I to write the above, I'd make `pid' a _local_ symbol (use a single equals sign), rather than global (double equals sign), or more likely, I'd avoid creating a separate symbol altogether. And when referencing something through a logical name, I always make it a practice to include the colon for readability/understandability. Like so: ---------------------------------------------------------------- $ Define DATA_OUT $$CAMPWORK:INTL_'F$GetJpi("","PID")'.DAT $ $ Create DATA_OUT: Some text $ $ Type DATA_OUT: $ Exit ---------------------------------------------------------------- > Let's see what happens when I do a SET MESSAGE... I seriously doubt the SET MESSAGE has anything to do with it. I'd check the the definition of $$CAMPWORK, and your disk quota, etc. My guess is that "something" changed between your two tests, like you cleaned up some files or something. My guess is that the first test failed to create the file at all because of something _unrelated_ to the command file, but if/since you _had_ messages turned off, you had no indication of what that was! Stop screwing around with SET MESSAGE and you'll learn more quickly. :-) -Ken -- Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 46 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | Voice: 650-926-2924 FAX: 650-926-3515 ------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...