BookmarkSubscribeRSS Feed
jazhang
Fluorite | Level 6

Hello, I would like to display more number of decimal places when print a matrix in SAS IML compared to the default setting. Anyone know how to do this? Thanks!

1 REPLY 1
IanWakeling
Barite | Level 11

You can apply a SAS format as part of the PRINT statement.  For example

 

  a = magic(7)/49;
  print a [format=12.10];

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 1 reply
  • 2314 views
  • 3 likes
  • 2 in conversation