Date: Mon, 29 Dec 2008 11:14:21 -0800
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jack Hamilton <jfh@STANFORDALUMNI.ORG>
Subject: Re: Use format file to format large number of variables
Content-Type: text/plain; charset="ISO-8859-1"
How does SAS know that the formats are associated with the variables?
If they're "associated with" in the normal SAS sense (format names
stored in the data set header), and the format library is in the
FMTSEARCH system option search path, you shouldn't have to do anything
to make the formats be used for display (with most procedures). What
formats does PROC CONTENTS say are associated with the variables? How
is your FMTSEARCH defined?
On Mon, 29 Dec 2008 12:32:35 -0600, "Herbert Morley A"
> I have two datasets that were sent to me
> Data1.sas7bdat and data2.sas7bdat
> The data has associated formats stored in a file
> I want to print out the data in a formatted style to look at. I know how
> to use formats in print etc, but I wonder if you can just tell it to use
> the format library and format each variable as defined.
> Real problem is one of typing (laziness). The datasets have 238 and 171
> variables and they are formatted with one of 13 formats. I really don't
> want to type all the variable names in a format statement.
> Any suggestion would be appreciated.
> Best of the season (Christmas, Hanukkah, Kwanza) to everyone and wishing
> all a Happy New Year.
> Morley Herbert
firstname.lastname@example.org <== Use this, not jfh @ stanfordalumni.org