BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello everyone,

I have a code in which I import data from a file and then I create a format using PROC FORMAT. But then every time I want to do some sort of output of the data I need to type [pre]FORMAT Var1 Var1. Var2 Var2. ...[/pre]

example:
[pre]OPTIONS FMTSEARCH= (FORMATS) ;
PROC PRINT data=TEMP;
format Region Region. Risk Risk. Economic_Health Economic_Health.;
RUN;
[/pre]

Is there any way to apply this format "permanently" so to speak?
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Assign the associated format when you create the SAS variable (typically a DATA step?), either using a FORMAT or ATTRIB statement.

Scott Barry
SBBWorks, Inc.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1179 views
  • 0 likes
  • 2 in conversation