home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20659 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  1.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!usc!news.service.uci.edu!ucivax!news.claremont.edu!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: Help needed on Uppercase in a batchfile
  5. Date: 9 Jan 1993 12:56:24 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 25
  8. Distribution: world
  9. Message-ID: <1imi1oINNg7a@gap.caltech.edu>
  10. References: <1993Jan4.204413.2561@merrimack.edu>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <1993Jan4.204413.2561@merrimack.edu>, finocchiaroj@merrimack.edu writes:
  15. >I have a question on whether there is a Uppercase function that you can use for
  16. >a batchfile, or is there an escape sequence to turn on Capslock. For example
  17. >say this is a batchfile:
  18. >    
  19. >    $ inquire/nopuct "enter your name: "
  20. >    
  21. >And you want the user to type in his name like this JASON and not like jason
  22. >I would appreciate any info on this.
  23.  
  24. First, I think you're confusing BATCH files and DCL procedures.  The former are
  25. a subset of the latter (DCL procedures become BATCH files as soon as you use
  26. the SUBMIT command to run them).
  27.  
  28. Second, what you want is:
  29.     $ READ/PROMPT="enter your name: " SYS$COMMAND NAME
  30.     $ NAME = F$EDIT(NAME, "UPCASE")
  31. --------------------------------------------------------------------------------
  32. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  33.  
  34. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  35. understanding of astronomy is purely at the amateur level (or below).  So
  36. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  37. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  38. hold me responsible for it, but my organization had nothing to do with it.
  39.