Date: Wed, 31 Jan 2007 00:31:22 -0800
Reply-To: alves <alves.paulo@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: alves <alves.paulo@GMAIL.COM>
Subject: Counting number of variables
Content-Type: text/plain; charset="iso-8859-1"
I have a macro to run regressions, this macro runs the regression and
creates some tables that are directly exported to excel. Now of the
parameters of this macro is the number of independent variables.
I now want to find a way to count the independent variables
%macro test (source, target, vardep, varind, npar);
%test (data1, data2, DEPVAR, mv N a1-a4, 6);
This list of variables has 6 variables, but sometimes the number of
variables can be determined within the macro and I need to add a line
that will count them.