[sas-users] 2 Easy SAS questions
matthew.nelson at census.gov
matthew.nelson at census.gov
Wed Sep 21 10:57:38 EDT 2011
Hi Beth, here are some follow-up questions that might help diagnose Q2:
-If you right-click on data set X within the Explorer window, then select
"View Columns", does the format appear to have been applied to the data
set?
-Which method are you using to view the data set: fsview, proc print, or
otherwise?
-I'm assuming that no errors/warnings were raised when applying the format
only, correct? e.g. SAS won't allow the assignment of a character format
to a numeric variable.
Matt
From:
elizabeth.may.nichols at census.gov
To:
sas-users at lists.census.gov
Date:
09/21/2011 10:33 AM
Subject:
[sas-users] 2 Easy SAS questions
Sent by:
sas-users-bounces at lists.census.gov
Question 1:
I have 200 character data and I want my proc print to wrap;
I have added, "options ls=200;"
What is the code so my output wraps and I can print it nicely?
Question 2:
I want to create a dataset where I format the values in a variable.
I tried to
data x (keep=variablea);
set y;
format variablea $varfmt.;
run;
when I look at data x, I still have my unformatted values. I tried to add
a "label" following an example on labels, but I kept getting errors.
Beth Nichols
Center for Survey Measurement
U.S. Census Bureau
301-763-1724
elizabeth.may.nichols at census.gov
_______________________________________________
sas-users mailing list
sas-users at lists.census.gov
http://lists.census.gov/mailman/listinfo/sas-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.census.gov/pipermail/sas-users/attachments/20110921/05f53f8b/attachment.html>
More information about the sas-users
mailing list