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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1517 views
  • 0 likes
  • 2 in conversation