Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!sdcsvax!ucbvax!CUNYVMS1.BITNET!ANK From: ANK@CUNYVMS1.BITNET (ANIL KHULLAR) Newsgroups: comp.os.vms Subject: RE: symbols in mail ? Message-ID: <8801020215.AA19993@ucbvax.Berkeley.EDU> Date: 2 Jan 88 00:51:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 29 >From: rdavenport@GTEWIS.ARPA > > I would like to know if there is a way to define symbols in DCL that can > be used when in MAIL. What I'd like is to be able to define something like: > $ mail$ext_vax :== extract/append [.mail]info_vax.text > > so I can say in mail : > > MAIL> ext_vax > > and have it execute "extract/append [.mail]info_vax.text". > > I know it can be done for some programs, like VAX ACS, but is there some > thing similar for VMS MAIL (on VMS 4.5)? > > Any help will be appreciated, I think you could do it in two steps 1. Create a file MAIL$KEYDEFS.INI where can define any key such as DEFINE/KEY /TERMINATE/NOECHO/NOLOG PF4 "extract/append .." 2. In your LOGIN.COM add the following $ DEFINE MAIL$INIT SYS$LOGIN:MAIL$KEYDEFS.INI Everytime you use mail this key will be mapped to PF4 hope this helps