Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!pasteur!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.os.vms Subject: Re: VMS global symbols Message-ID: <880412100523.938@CitHex.Caltech.Edu> Date: 12 Apr 88 17:09:44 GMT References: <14274@hc.DSPO.GOV> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 33 > in article <1181@csun.UUCP>, mst@csun.UUCP (Mike Temkin) says: > > > > I have a few programs that need command line parameters passed to them. > > The documentation that comes with them (not much there) shows that a global > > symbol ( :== ) should be used. I have tried to get them to work, but > > 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? > > > > Thanks in advance, > > Mike Temkin > > What you need is a command file, PROGRAM_RUN.COM, that contains: > > $ RUN PROGRAM 'P1' 'P2' > > Then define PGM :== @PROGRAM_RUN > > To envoke program with parameters, type > > PGM X Y Sigh. I wish more people who answer questions in this forum would take the time to check and see if their "solutions" have any basis in reality. The RUN command takes exactly ONE parameter: the name of the program to be run. The "solution" proposed by Jim A. Whitfill has exactly the same problems as everything the original poster had. The REAL solution is to define $ PGM:==$PROGRAM then use the command $ PGM X Y where PROGRAM is a file specification including the path.