LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 29 Jul 2008 16:26:11 -0500
Reply-To:     "data _null_," <datanull@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "data _null_," <datanull@GMAIL.COM>
Subject:      Re: printing question.
Comments: To: mpajoh@odot.org
In-Reply-To:  <OF9578B8D3.6792CE6F-ON86257495.00744A8D-86257495.0075065E@fd9ns01.okladot.state.ok.us>
Content-Type: text/plain; charset=ISO-8859-1

Sas Variable List (Name: ) If you don't have any K variables you get a warning.

data a; call missing(of a b c d e f k1 k2 k3 k4); run; proc print data=a; var b d a e k:; run;

data a; call missing(of a b c d e f); run; proc print data=a; var b d a e k:; run;

On 7/29/08, Masoud Pajoh <mpajoh@odot.org> wrote: > I have a data set a which has these vars: > > a b c d e f k1 k2 k3 k4 > > To print in the order I want I would do; > > proc print data=a; > var b d a e k1 k2 k3 k4; > run; > > that is easy. > > Now in my situation I do not know how many K's the data set has, if any. > but I still want to print: > var b d a e > and then all the present K's in order if there are any. > The K's are always sequentially numbered, i.e. k1 k2 k3 . . . > > how can I do that? > > thanks for all the help. >


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