home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / vms / 19478 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  1.9 KB

  1. Path: sparky!uunet!sunquest!spades.aces.com!gavron
  2. From: gavron@spades.aces.com (Ehud Gavron 602-570-2000 x. 2546)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Not translating lexicals in symbols
  5. Message-ID: <17DEC199211172521@spades.aces.com>
  6. Date: 17 Dec 92 18:17:00 GMT
  7. References: <1992Dec16.123301.20677@yang.earlham.edu>
  8. Sender: news@sunquest.UUCP
  9. Reply-To: gavron@ACES.COM
  10. Organization: ACES Consulting Inc.
  11. Lines: 42
  12. News-Software: VAX/VMS VNEWS 1.4-b1
  13.  
  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. #     dir/since="''f$cvtime(,"absolute",)-10"
  19. #The problem I am having is that the lexical either gets translated when I
  20. #define the symbol:
  21. #          dd:==dir/since=""'f$cvtime(,"absolute",)-10"""
  22. #     Yeilds:
  23. #          DD == "DIR/SINCE="16-DEC-1992 12:20:49.58-10""
  24. #Or not at all:
  25. #          dd:==dir/since=""""''f$cvtime(,"absolute",)-10"""
  26. #     Yeilds:
  27. #          DD == "DIR/SINCE="F$CVTIME(,absolute,)-10""
  28. #The closest I can get is:
  29. #          DD == "DIR/SINCE="'f$cvtime(,ABSOLUTE,)-10""
  30. #     Using:
  31. #          dd:==dir/since="""'f$cvtime(,"absolute",)-10"""
  32. #But what I want is
  33. #          DD == "DIR/SINCE="''F$CVTIME(,absolute,)-10""
  34. #I understand what causes the output in all these cases... I was wondering if
  35. #there is a way to get what I want.
  36.  
  37.     Not without putting the command in a command procedure and
  38.     then having a symbol call up the command procedure.
  39.  
  40. #Thanks,
  41. #Alan Moore                              alanmoore@yang.earlham.edu
  42. #System/Network Manager, Postmaster      (317)983-1437
  43. #Earlham College
  44. #Richmond, IN
  45. #Thanks,
  46.  
  47.     Ehud
  48.  
  49. --
  50. Ehud Gavron        (EG76)     
  51. gavron@vesta.sunquest.com
  52. Here we are in America...  when do we collect unemployment?
  53.