hi
I make this:
do until answer = N'
instructions
say 'Do you want to exit? (s/n)'
pull answer
if answer = 'S' then exit
end
I type s, but not exit of the do until?? Why?? this is a case sensitive??
It´s correct??
more a question:
how i do to treat for error:
10 +++ dec25 = date("B",year"1225","S")//7
IRX0040I Error running CHRISTMA, line 10: Incorrect call to routine
the error ocorred when typed less four digits to year??
ex: year with tree or two or one digits
200 or 20 or 2.
regards
----- Original Message -----
From: "P S" <[EMAIL PROTECTED]>
Newsgroups: bit.listserv.ibm-main
To: <IBM-MAIN@BAMA.UA.EDU>
Sent: Friday, October 03, 2008 10:30 PM
Subject: Re: REXX question
This would work:
==========
do until answer = N'
say 'Do you want to exit? (s/n)'
pull answer
if answer = 'S' then exit
end
==========
It could be made a lot more elegant, of course.
On Fri, Oct 3, 2008 at 9:20 PM, Claudio Marcio <[EMAIL PROTECTED]> wrote:
Hi,
How make to receive one string in rexx language??
Ex. say ' you want exit (s/n)?'
pull ??
arg ?? parse ??
if (string??) = 's'
return to begin exec
else
exit
I want ready the string with which command?
regards
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html