home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnewsk!cbnewsj!att-out!pacbell.com!unet!porsche!nowacki
- From: nowacki@porsche.net.com ( Michael Nowacki I.T. Database Contractor)
- Subject: Re: Not translating lexicals in symbols
- Message-ID: <1992Dec18.002116.14888@unet.net.com>
- Sender: news@unet.net.com
- Nntp-Posting-Host: porsche
- Organization: Network Equipment Technologies, Redwood City
- References: <1992Dec16.123301.20677@yang.earlham.edu> <17DEC199211172521@spades.aces.com>
- Date: Fri, 18 Dec 1992 00:21:16 GMT
- Lines: 45
-
- In article <17DEC199211172521@spades.aces.com> gavron@ACES.COM writes:
- >In article <1992Dec16.123301.20677@yang.earlham.edu>, alanmoore@yang.earlham.edu writes...
- >#I would like to have a symbol that has a lexical in it, but I don't want the
- >#lexical to be translated until the symbol is used. For instance. make a symbol
- >#out of:
- >#
- ># dir/since="''f$cvtime(,"absolute",)-10"
- >#
- >#The problem I am having is that the lexical either gets translated when I
- >#define the symbol:
- ># dd:==dir/since=""'f$cvtime(,"absolute",)-10"""
- ># Yeilds:
- ># dd:==dir/since="""'f$cvtime(,"absolute",)-10"""
- >#But what I want is
- ># DD == "DIR/SINCE="''F$CVTIME(,absolute,)-10""
- >#I understand what causes the output in all these cases... I was wondering if
- >#there is a way to get what I want.
- >
- > Not without putting the command in a command procedure and
- > then having a symbol call up the command procedure.
- >
-
- Why can't you put it in a symbol, though? For example:
-
- (sql is a symbol for the Ingres Sql query interface; it invokes the program)
- Ingres requires a database name as a parameter. Hiding the name with a logical,
- this works interactively...
-
- $ sql 'f$trnlnm("DBNAME")
-
- If it is assigned to a symbol,
-
- $ zz :== 'sql "'f$trnlnm("""DBNAME""")"
-
- the symbol LOOKS correct ...
-
- $sh sym zz
- ZZ == "$II_SYSTEM:[INGRES.BIN]TM.EXE -QSQL 'f$trnlnm("DBNAME")"
-
- but the equivalence of DBNAME is not passed as a parameter like it is when
- entered interactively.
-
- Why not?
-
- p.s. sorry about my previous post about file versions.
-