Chapter Contents |
Previous |
Next |
VERIFY |
Category: | Character |
Syntax | |
Arguments | |
Details | |
Examples |
Syntax |
VERIFY(source,excerpt-1<,...excerpt-n>) |
Details |
The VERIFY function returns the position of the first character in source that is not present in any excerpt. If VERIFY finds every character in source in at least one excerpt, it returns a 0.
Examples |
SAS Statements | Results |
---|---|
data scores; input Grade : $1. @@; check='abcdf'; if verify(grade,check)>0 then put @1 'INVALID ' grade=; datalines; a b c b c d f a a q a b d d b ; |
INVALID Grade=q |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.