Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CICGJ.RPI.EDU!MADISON From: MADISON@CICGJ.RPI.EDU (Matt Madison) Newsgroups: comp.os.vms Subject: Re: Re: VMS global symbols Message-ID: <880412.11398@CICGJ.RPI.EDU> Date: 12 Apr 88 14:16:57 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 25 in article <14274@hc.dspo.gov>, whitfill@hc.dspo.gov (Jim Whitfill) says: >in article <1181@csun.UUCP>, mst@csun.UUCP (Mike Temkin) says: [...] >> I see no difference between typing 'RUN PROGRAM' and setting a global >> symbol like 'PRG :== RUN PROGRAM 'P1 'P2' then typing 'PRG param1 param2'. >> >> Can anyone tell me what I am doing wrong? > >What you need is a command file, PROGRAM_RUN.COM, that contains: > >$ RUN PROGRAM 'P1' 'P2' > >Then define PGM :== @PROGRAM_RUN No, no. You need not do anything so complicated. Simply define your "foreign command" as: $ PRG :== $dev:[dir]PROGRAM Where "dev" and "dir" are the device and directory where the executable is located. This is really basic RTFM DCL stuff. Matt Madison madison@cicgj.rpi.edu Systems Programmer, Center for Interactive Computer Graphics Rensselaer Polytechnic Institute