Regex for Log Code

Taken from this excellent paper by Scott Davis. ^ = start from beginning of stringd = match a digit+ = match any number of digitsb = match a word Boundary The arrow to the right of the “Find text:” dialog box can be expanded to show more search...

datetime formats

My favourites: %put%sysfunc(datetime(),B8601DT19); %put %sysfunc(datetime(),is8601dt.); Which give: 20121117T150358  2012-11-17T15:03:58 Full list:...

Generate Resolved SAS code

Got a complex macro?  Don’t have time to work out what it is actually doing?  Its much easier to work with resolved code!  The macro below will help – just stick it at the start of your code, and write the resolved code somewhere else (which...

Bored?

SAS BACK SAS FORWARD Global Statements Syntax: PROC RASTINATE Complete documentation for the RASTINATE procedure will be posted at a later date. PROC RASTINATE <option(s)>; RUN; Applies the “rastination” conversion (R. Aster, 2005) to postpone all...

Submitting OS commands from SAS

When dealing with a Pooled Workspace Server, a generic ‘host account’ is normally used.  So you tend not to have individual host accounts to log in with.  Therefore, sometimes the only way to navigate the server is to use EG!  Hence this...