home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19493 < prev    next >
Encoding:
Text File  |  1992-12-18  |  2.1 KB  |  58 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnewsk!cbnewsj!att-out!pacbell.com!unet!porsche!nowacki
  3. From: nowacki@porsche.net.com ( Michael Nowacki I.T. Database Contractor)
  4. Subject: Re: Not translating lexicals in symbols
  5. Message-ID: <1992Dec18.002116.14888@unet.net.com>
  6. Sender: news@unet.net.com
  7. Nntp-Posting-Host: porsche
  8. Organization: Network Equipment Technologies, Redwood City
  9. References: <1992Dec16.123301.20677@yang.earlham.edu> <17DEC199211172521@spades.aces.com>
  10. Date: Fri, 18 Dec 1992 00:21:16 GMT
  11. Lines: 45
  12.  
  13. In article <17DEC199211172521@spades.aces.com> gavron@ACES.COM writes:
  14. >In article <1992Dec16.123301.20677@yang.earlham.edu>, alanmoore@yang.earlham.edu writes...
  15. >#I would like to have a symbol that has a lexical in it, but I don't want the
  16. >#lexical to be translated until the symbol is used.  For instance. make a symbol
  17. >#out of:
  18. ># 
  19. >#     dir/since="''f$cvtime(,"absolute",)-10"
  20. ># 
  21. >#The problem I am having is that the lexical either gets translated when I
  22. >#define the symbol:
  23. >#          dd:==dir/since=""'f$cvtime(,"absolute",)-10"""
  24. >#     Yeilds:
  25. >#          dd:==dir/since="""'f$cvtime(,"absolute",)-10"""
  26. >#But what I want is
  27. >#          DD == "DIR/SINCE="''F$CVTIME(,absolute,)-10""
  28. >#I understand what causes the output in all these cases... I was wondering if
  29. >#there is a way to get what I want.
  30. >
  31. >    Not without putting the command in a command procedure and
  32. >    then having a symbol call up the command procedure.
  33. >
  34.  
  35. Why can't you put it in a symbol, though? For example:
  36.  
  37. (sql is a symbol for the Ingres Sql query interface; it invokes the program)
  38. Ingres requires a database name as a parameter. Hiding the name with a logical,
  39. this works interactively...
  40.  
  41. $ sql 'f$trnlnm("DBNAME")
  42.  
  43. If it is assigned to a symbol,
  44.  
  45. $ zz :== 'sql "'f$trnlnm("""DBNAME""")"
  46.  
  47. the symbol LOOKS correct ...
  48.  
  49. $sh sym zz
  50.   ZZ == "$II_SYSTEM:[INGRES.BIN]TM.EXE -QSQL 'f$trnlnm("DBNAME")"
  51.  
  52. but the equivalence of DBNAME is not passed as a parameter like it is when
  53. entered interactively.
  54.  
  55. Why not?
  56.  
  57. p.s. sorry about my previous post about file versions.
  58.