BookmarkSubscribeRSS Feed
SASJedi
SAS Super FREQ

DS2 is a SAS programming language available in Base SAS 9.4+ and in all versions of SAS Viya. The language is designed for simple, safe parallel processing using an intriguing combination of SQL and traditional DATA step syntax. DS2 is also capable of accessing and processing database high-precision numeric values such as BIGINT and DECIMAL without any loss of precision. The paper discusses the benefits of converting a base SAS DATA step to DS2 when the DATA step process is CPU-bound and shows the amazing boost in processing speed that can be achieved by running the process in CAS on SAS Viya.


I learned about DS2 and began writing the first SAS training course for DS2 programming in 2013. I quickly developed a fondness for this amazingly versatile language. This presentation is intended to acquaint you with some of the most useful features in DS2, including:

  • Basic DS2 programming syntax
  • Similarities to and differences from traditional DATA step programming.
  • Thumb rules for choosing DS2 or DATA step
  • How to access and manipulate database table data at full precision when processing ANSI data types like DECIMAL, BIGINT, and VARCHAR.
  • How to convert DATA step programs into DS2 threads to enable parallel processing.

Link to presentation ZIP 

Check out my Jedi SAS Tricks for SAS Users

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Discussion stats
  • 0 replies
  • 761 views
  • 4 likes
  • 1 in conversation