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