* Re: Now you see me, now you don't
1999-05-06 4:00 Now you see me, now you don't Ed Havelaar
@ 1999-05-05 4:00 ` fairfield
1999-05-06 4:00 ` Ed Havelaar
0 siblings, 1 reply; 6+ messages in thread
From: fairfield @ 1999-05-05 4:00 UTC (permalink / raw)
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...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Now you see me, now you don't
1999-05-05 4:00 ` fairfield
@ 1999-05-06 4:00 ` Ed Havelaar
1999-05-07 4:00 ` Ed Havelaar
0 siblings, 1 reply; 6+ messages in thread
From: Ed Havelaar @ 1999-05-06 4:00 UTC (permalink / raw)
In article <1999May5.181300.1@sldb4.slac.stanford.edu>, fairfield@sldb4.slac.stanford.edu says...
>
>In article <7gqnuu$br4$1@cantuc.canterbury.ac.nz>, E.Havelaar@Regy.Canterbury.Ac.NZ (Ed Havelaar) wr
>ites:
>> I was having a little trouble creating a file with a script:
>>
> 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!
I can't believe it has much to do with SET MESSAGE either, but the fact is
I can repeat the behaviour by commenting out / reinstating the SET MESSAGE
command. For that reason I also don't believe it's the $$CAMPWORK
definition either. What I really want to know is what "unrelated" thing
am I missing here?
Whether SET MESSAGE is on or off is beyond control. I am supposed to
leave messaging as it is for the account in question. I can only
fiddle with it for testing purposes.
- Ed.
__________________________________________________________________
Eduard E Havelaar | Bear with me while I speak,
Information Services Section | and after I have spoken,
University of Canterbury | mock on.
Christchurch, New Zealand | - Job 21:3
^ permalink raw reply [flat|nested] 6+ messages in thread
* Now you see me, now you don't
@ 1999-05-06 4:00 Ed Havelaar
1999-05-05 4:00 ` fairfield
0 siblings, 1 reply; 6+ messages in thread
From: Ed Havelaar @ 1999-05-06 4:00 UTC (permalink / raw)
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.
Let's see what happens when I do a SET MESSAGE...
$ pid == f$getjpi("","PID")
$
$ def data_out "$$campwork:intl_''pid'.dat"
$
$SET MESSAGE /FACILITY /IDENTIFICATION /SEVERITY /TEXT
$CREATE DATA_OUT
HI THERE
$type data_out
HI THERE
$EXIT
No error! What's going on?
--
- Ed.
__________________________________________________________________
Eduard E Havelaar | Bear with me while I speak,
Information Services Section | and after I have spoken,
University of Canterbury | mock on.
Christchurch, New Zealand | - Job 21:3
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Now you see me, now you don't
1999-05-06 4:00 ` Ed Havelaar
@ 1999-05-07 4:00 ` Ed Havelaar
1999-05-07 4:00 ` avajhoej
0 siblings, 1 reply; 6+ messages in thread
From: Ed Havelaar @ 1999-05-07 4:00 UTC (permalink / raw)
Okay, I've found the reasone for my worries now.
Basically it comes down to the feature illustrated here:
$def /user blarg fred
$def blarg bill
$sho log blarg
"BLARG" = "FRED" (LNM$PROCESS_TABLE)
$sho log blarg
"BLARG" = "BILL" (LNM$PROCESS_TABLE)
- Ed.
__________________________________________________________________
Eduard E Havelaar | Bear with me while I speak,
Information Services Section | and after I have spoken,
University of Canterbury | mock on.
Christchurch, New Zealand | - Job 21:3
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Now you see me, now you don't
1999-05-07 4:00 ` Ed Havelaar
@ 1999-05-07 4:00 ` avajhoej
1999-05-07 4:00 ` John Laird
0 siblings, 1 reply; 6+ messages in thread
From: avajhoej @ 1999-05-07 4:00 UTC (permalink / raw)
In article <7gtq3k$dei$1@cantuc.canterbury.ac.nz>,
E.Havelaar@Regy.Canterbury.Ac.NZ (Ed Havelaar) wrote:
> Okay, I've found the reasone for my worries now.
> Basically it comes down to the feature illustrated here:
>
> $def /user blarg fred
> $def blarg bill
> $sho log blarg
> "BLARG" = "FRED" (LNM$PROCESS_TABLE)
> $sho log blarg
> "BLARG" = "BILL" (LNM$PROCESS_TABLE)
Well that is documented and expected behaviour !
User-mode logicals are junked at image-exit. $ DEFINE does not
activate an image. $ SHOW does activate an image. So the first
$ SHOW LOG junks the user-mode logical.
Arne
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Now you see me, now you don't
1999-05-07 4:00 ` avajhoej
@ 1999-05-07 4:00 ` John Laird
0 siblings, 0 replies; 6+ messages in thread
From: John Laird @ 1999-05-07 4:00 UTC (permalink / raw)
In article <7gu9ui$ogf$1@nnrp1.deja.com>, avajhoej@gtech.com writes:
> In article <7gtq3k$dei$1@cantuc.canterbury.ac.nz>,
> E.Havelaar@Regy.Canterbury.Ac.NZ (Ed Havelaar) wrote:
>> Okay, I've found the reasone for my worries now.
>> Basically it comes down to the feature illustrated here:
>>
>> $def /user blarg fred
>> $def blarg bill
>> $sho log blarg
>> "BLARG" = "FRED" (LNM$PROCESS_TABLE)
>> $sho log blarg
>> "BLARG" = "BILL" (LNM$PROCESS_TABLE)
>
> Well that is documented and expected behaviour !
>
> User-mode logicals are junked at image-exit. $ DEFINE does not
> activate an image. $ SHOW does activate an image. So the first
> $ SHOW LOG junks the user-mode logical.
This particular SHOW command does activate an image - SHOW TRAN doesn't !
Likewise, $ WRITE SYS$OUTPUT "''F$TRNLNM("BLARG")'" won't activate an image
either.
You soon learn the fine details of these if you have to interrupt an image
and fiddle about with logical names !
--
John Laird (john@yrl.co.uk) "I have discovered a truly elegant sig,
Yezerski Roper Ltd sadly there is no room here to show it."
http://www.yrl.co.uk
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-05-07 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-06 4:00 Now you see me, now you don't Ed Havelaar
1999-05-05 4:00 ` fairfield
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox