BookmarkSubscribeRSS Feed
TANMOY05
Obsidian | Level 7

The numbers like  1.000 , 22.00 etc. after transposing gets converted to 1 , 22 respectively. What should i do so that even after transposing, the numbers should come out as 1.000 ,22.00?

5 REPLIES 5
ed_sas_member
Meteorite | Level 14

Hi @TANMOY05 

You need to apply a format for display.

n.p

Maximum "n" number of columns with "p" decimal points.

 

e.g. 4.3

TANMOY05
Obsidian | Level 7
After transposing , the variables changes , therefore i can't apply the format
ed_sas_member
Meteorite | Level 14

Hi @TANMOY05 

You need to apply the format after transposing to the new variables that have been created.

TANMOY05
Obsidian | Level 7
No, that is creating problem, isn't there anyway of retaining the format while transposing only?
ed_sas_member
Meteorite | Level 14

Please provide a sample of your data and the desired output...

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 545 views
  • 0 likes
  • 2 in conversation