BookmarkSubscribeRSS Feed
michael_friendly
Fluorite | Level 6

For teaching with SAS/IML in 'desk calculator mode', I tell students to start with

proc iml;

   reset print log;

   A = {1 2, 3 4};

so that their statements and output are directed to the log file where they can see the input together with the output.

This doesn't work in SAS 9.3 (under Windows 7), where all output is in

HTML and seen in the Results Viewer. 

Is there someway to restore the previous behavior?  I tried

ods listing on;

proc iml;

   reset print log;

but that has no effect.

As well, HTML format for tables, while it may work well for standard IML stuff where only main

results are printed, is really confusing for this use by students, e.g.,

print A (t(A));

thx,

-Michael

1 REPLY 1
Rick_SAS
SAS Super FREQ

Use

ODS LISTING;

(don't say "ON").

Yes, HTML mashes matrices together into a big table. Also, HTML has no concept of RESET SPACES=4. I've started using commas more: print A, (t(A)); 

Rick

SAS/IML blog: http://blogs.sas.com/content/iml

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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