LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (January 2007, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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>
Organization: http://groups.google.com
Subject:      Counting number of variables
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Hi,

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 automatically, eg.

%macro test (source, target, vardep, varind, npar);

%mend test;

%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.

Any help?

PA


Back to: Top of message | Previous page | Main SAS-L page