[Info-vax] defining a symbol as an action invoked when entered as command

Phillip Helbig undress to reply helbig at asclothestro.multivax.de
Sat Mar 28 10:16:35 EDT 2020


In article <ed7533b1-880c-4170-b309-2be0dd399c3d at googlegroups.com>, johnwallace4 at yahoo.co.uk writes:

> On Saturday, 28 March 2020 09:21:56 UTC, Phillip Helbig (undress to reply)  wrote:
> > I can do something like this in a command procedure:
> > 
> >    $ DEFINE/GROUP/NOLOG HERE 'F$ENVIRONMENT("DEFAULT")'
> >    $ EXIT
> > 
> > and define a symbol to run this procedure.  Works fine.
> > 
> > Is there anyway to get the same result as a symbol which gets evaluated 
> > only when entered as a command?
> 
> Are you perhaps referring to 'deferred substitution" using the
> ampersand "&" character?

Yes, something like that.

> See e.g. an OpenVMS Users Manual for your VMS of choice, and its 
> section on Understanding Symbol Substitution.
> 
> E.g.
> http://h30266.www3.hpe.com/odl/axpos/opsys/vmsos84/6489/6489pro_033.html
> 
> If you provide an actual (rather than vague) example of what
> you're looking for, the answer may become clearer.

The above does what I want, but can I do it without a command procedure?




More information about the Info-vax mailing list