Path: utzoo!mnetor!uunet!sdrc!scjones From: scjones@sdrc.UUCP (Larry Jones) Newsgroups: comp.os.vms Subject: Re: Use of RMS from VAX C Message-ID: <218@sdrc.UUCP> Date: 17 Feb 88 12:42:36 GMT References: <8802150715.AA23998@ucbvax.Berkeley.EDU> Organization: Structural Dynamics Research Corp., Cincinnati Lines: 22 In article <8802150715.AA23998@ucbvax.Berkeley.EDU>, XPMAINT@TAMVENUS.BITNET (Shane Davis -- CSC XPrint Programmer) writes: > Hello again... > > I'm trying to use the RMS services $PARSE and $SEARCH to process wildcard file > specifications. However, the VAX C compiler (V2.3) flags an error "Invalid > right operand of an &= operator" at this statement: > > file_fab.fab$l_nam=&file_nam; Easy. The compiler is misinterpreting your statement as using the old- fashioned combined assignment operator =&. Just put spaces around the = and all will be well. Just one more example of why you should *always* leave space around binary operators. -- ---- Larry Jones UUCP: uunet!sdrc!scjones SDRC MAIL: 2000 Eastman Dr., Milford, OH 45150 AT&T: (513) 576-2070 "When all else fails, read the directions."