Path: utzoo!mnetor!uunet!husc6!ncar!ames!pasteur!ucbvax!unocss.unl.EDU!fritz From: fritz@unocss.unl.EDU (Tim Russell) Newsgroups: comp.os.vms Subject: DCL problems Message-ID: <8803161941.AA27785@unocss.unl.edu> Date: 16 Mar 88 19:41:28 GMT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 38 Hi folks, A professor here at UNO is having a problem with a DCL command file. He's trying to loop through command-line parameters to a DCL procedure, by using (what to call it?) indirect evaluation, I guess. Anyways, here's a sample: $ p2 := "filename" !Just for example $ count = 2 $ temp := &p'count' $ t1 = temp $ show symbol t1 This yields the following: T1 = "&P2" When what it /should/ do is assign the string "filename" to T1. Any suggestions? DEC used an example very similar in the DCL Concepts Manual, I believe, but it works. Any ideas what's wrong? I've tried lots of combin- ations of ":=" and "=" to no avail... Any help would be appreciated. Please answer directly, as I'm not subscribed yet. By the way, the following works: $ temp = "p" + "''count'" $ t1 = 'temp' $ show symbol t1 but it seems like a kludge, and the "&" trick is supposed to work. ============================================================================== | "Bones! Help him! He's choking!" | Tim Russell (fritz@fergvax.unl.edu) | The University of Nebraska at Omaha "Dammit, Jim, I'm a doctor, not a... | Home of the Fighting Mavericks oh, yeah...." | (as if anybody cares...) | ==============================================================================