VERIFY Function


Returns the position of the first character that is unique to an expression

Category: Character

Syntax

VERIFY ( source,excerpt-1 <, excerpt-n >)

Arguments

source

  • specifies any SAS character expression.

excerpt

  • specifies any SAS character expression. If you specify more than one excerpt, separate them with a comma.

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 : . @@;   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  



SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net