Returns the name, type, and length of a variable that is used in a DATA step.
Category: | Variable Information |
is a character variable that is updated by the CALL VNEXT routine. The following rules apply:
data test; x=1; y='abc'; z=.; length z 5; run; data attributes; set test; by x; input a b $ c; length name $32 type $3; name=' '; length=666; do i=1 to 99 until(name=' '); call vnext(name,type,length); put i= name @40 type= length=; end; this_is_a_long_variable_name=0; datalines; 1 q 3 ;
i=1 x type=N length=8 i=2 y type=C length=3 i=3 z type=N length=5 i=4 FIRST.x type=N length=8 i=5 LAST.x type=N length=8 i=6 a type=N length=8 i=7 b type=C length=8 i=8 c type=N length=8 i=9 name type=C length=32 i=10 type type=C length=3 i=11 length type=N length=8 i=12 i type=N length=8 i=13 this_is_a_long_variable_name type=N length=8 i=14 _ERROR_ type=N length=8 i=15 _N_ type=N length=8 i=16 type= length=0