[Info-vax] puzzled by DCL symbol substitution

Lester Dreckow lester.dreckow at gmail.com
Mon Jan 9 22:19:38 EST 2012


On Jan 7, 9:49 pm, AEF <spamsink2... at yahoo.com> wrote:

> Here's another fun one:
>
> $ SET VERIFY
> $ TYPE COMMENT.COM
> $ ! DIR = '&DIR'
> $ @COMMENT
> $ ! DIR = 'DIRECTORY/SIZE=ALL/DATE /WIDTH=(FILE=29,SIZE=7)'
> $

Good one!  I did know about $!'f$verify(0), but not this one.

For years I have been wanting to slim down DCL procedure entry and
exit comments.  Now I can do ...

$ type comment.com
$ self = f$environment("procedure")
$!'&self'
$
$
$ exit          !'&self'

$ set verify
$ @comment
$ self = f$environment("procedure")
$!'DISK1:[TEST]COMMENT.COM;1'
$
$
$ exit          !'DISK1:[TEST]COMMENT.COM;1'

Thanks.




More information about the Info-vax mailing list