[Info-vax] CSWS symbols
David J Dachtera
djesys.no at spam.comcast.net
Wed Mar 25 21:49:30 EDT 2009
ken.fairfield at gmail.com wrote:
>
> On Mar 23, 3:15 pm, "jo jimbo" <joji... at sbcglobal.net> wrote:
> > I tried that. Show symbol remote_user works, the others don't. Output from
> > my
> > cgi script is:
> >
> > $ show symbol remote_user
> > REMOTE_USER = "jgessling"
> > $ show sym/local/all
> > P1 = ""
> > P2 = ""
> > P3 = ""
> > P4 = ""
> > P5 = ""
> > P6 = ""
> > P7 = ""
> > P8 = ""
> > $ show sym/global/all
> > $RESTART == "FALSE"
> > $SEVERITY == "1"
> > $STATUS == "%X00030001"
> > APACHE$DCL_CMD == "@APACHE$COMMON:[PROTECTED-BIN]TEST.COM"
> >
> > Still confused.
> >
> > Jim
>
> Search for the thread with the title, "Q: (long) DCL
> symbols not appearing in Show Symbol output
> [SLS V2.9H]" which I posted in, oh, mid-to-late 2007.
>
> In the context of procedures called from SLS, I wanted
> to know what symbols were available. And I couldn't
> find some I already *knew* were present with wither
> Show Symbol/Global/All or Show Symbol/Local/All .
>
> The upshot is that there is a *third* class of symbols
> which neither of the above Show Symbol will show:
> local symbols defined in an outer procedure. You
> can show global symbols, and you can show symbols
> defined local to your own procedure, but you can't
> show (/all) symbols local to another procedure. If
> you already know one of these in-between symbol's
> name, then you can show it with
> Show Symbol <the_name>, but you can't get list
> of them.
>
> Curious, methinks, but that's the answer, such as
> it is...
You can simulate this in your terminal session...
DJAS01::DDACHTERA$ sh sym x*
X = "ASTERISK"
DJAS01::DDACHTERA$ x10:= slash-asterisk
DJAS01::DDACHTERA$ sh sym x*
X = "ASTERISK"
X10 = "SLASH-ASTERISK"
DJAS01::DDACHTERA$ @tt:
_DJAS01::DDACHTERA$ sh sym/all
P1 = ""
P2 = ""
P3 = ""
P4 = ""
P5 = ""
P6 = ""
P7 = ""
P8 = ""
_DJAS01::DDACHTERA$ sh sym x*
%DCL-W-UNDSYM, undefined symbol - check validity and spelling
_DJAS01::DDACHTERA$ sh sym x
X = "ASTERISK"
_DJAS01::DDACHTERA$ sh sym x10
X10 = "SLASH-ASTERISK"
_DJAS01::DDACHTERA$ Exit
DJAS01::DDACHTERA$
Perhaps another item "that DEC forgot":
$ SHOW SYMBOL/ACCESSIBLE ! Display "local" symbols belonging to
$ ! proc depths shallower than current
D.J.D.
More information about the Info-vax
mailing list