As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tip of the Day:January 18

From sasCommunity
Revision as of 23:30, 16 January 2010 by Frankfry (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

sasCommunity Tip of the Day

The SLEEP function is different in PC SAS than for non-Windows SAS. For PC SAS, the default unit is seconds, while under Unix the default unit is milliseconds. So x = sleep(10); on PC AND x = sleep(10000); under Unix produce the same result. Thanks Murphy Choy, Rivo Ramamonjy, and Andre Wielki for their expertise!

P.S. So if you want to write a SAS program that is portable between unix, windows and the mainframe then use the second argument to the sleep function as well. x = sleep(10,1); will sleep for 10 seconds on all hosts.

Submitted by Kevin Y. Contact me at my Discussion Page.



Feel free to comment on this tip.


Prior tip - Next tip - Random Tip

Submit a Tip