From: fairfield@sldb4.slac.stanford.edu
Subject: Re: Now you see me, now you don't
Date: 1999/05/05 [thread overview]
Message-ID: <1999May5.181300.1@sldb4.slac.stanford.edu> (raw)
In-Reply-To: 7gqnuu$br4$1@cantuc.canterbury.ac.nz
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...
next prev parent reply other threads:[~1999-05-05 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-06 4:00 Now you see me, now you don't Ed Havelaar
1999-05-05 4:00 ` fairfield [this message]
1999-05-06 4:00 ` Ed Havelaar
1999-05-07 4:00 ` Ed Havelaar
1999-05-07 4:00 ` avajhoej
1999-05-07 4:00 ` John Laird
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox