From: mahi on 26 Jul 2010 22:48 HOW TO COUNT NUMBER OF VARIABLES IN A DATASET?
From: Oleg on 27 Jul 2010 05:07 On Jul 27, 6:48 am, mahi <mehetrey.mahen...(a)gmail.com> wrote: > HOW TO COUNT NUMBER OF VARIABLES IN A DATASET? Hi. Try this code. %let dsid=%sysfunc(open(sashelp.shoes)); %let nvars=%sysfunc(attrn(&dsid,nvars)); %let rc=%sysfunc(close(&dsid)); %put &nvars; Oleg.
|
Pages: 1 Prev: please help: macro question Next: need assistance on the SPSS code understanding |