In our last tips & tricks blogpost we looked at how the VARNUM function could be used to within a DATA Step to determine whether a variable was present within dataset and how this function could be used as an…
SAS tips & tricks #1 – The VARNUM function
A couple of well known ways to tell whether a variable is present in a dataset include using a PROC CONTENTS or by referring to the SASHELP.VCOLUMN Dictionary Table, a perhaps lesser known approach is to utilise the VARNUM function.…