Yes ... silly me: I wasn't thinking :-[ Thanks for noticing.
do while \datatype(year,'N') | LENGTH(year) \= 4
SAY 'Invalid Date!!... enter year, using only 4 num digits'
pull year
end
Cheers, Chris Poncelet
Hunkeler Peter (KIUK 3) wrote:
If you want to check that the user has entered a 4-digit year,
you could code:
do while \datatype(year,'N') & LENGTH(year) \= 4
SAY 'Invalid Date!!... enter year, using only 4 num digits'
pull year
end
You could but it would not work as intended. You need to use
the OR operator not the AND.
--
Peter Hunkeler
CREDIT SUISSE
----------------------------------------------------------------------
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