BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

Hello,

Please, I want to know the avantage of proc ds2 compared to to data step and sas macro.

 

Thank you

5 REPLIES 5
LinusH
Tourmaline | Level 20
DS2 can run in parallel and offers more flexibility than the traditional data step. Like possibility to define range of different data types, and nest SQL within the data step. DS2 is also used whith SAS in-database technology.
Hard to compare with macro. Perhaps the flexibility in DS2 will make some macro scenarios obsolete.
Like always, it's easier to compare when you have an actual use case.
Meanwhile, search support.sas.com for papers on the subject.
Data never sleeps
LineMoon
Lapis Lazuli | Level 10

Thank you for your answer.

You say " to define range of different data types, and nest SQL within the data step"

Intersting, Could you give some exemples ?

 

LinusH
Tourmaline | Level 20
Please do your own research given the hints in my previous post. It's not hard to find...
Data never sleeps
Paul_OldenKamp_org
Obsidian | Level 7

You might want to look up "The DS2 Procedure: SAS Programming Methods at Work" by Peter Eberhardt and published by SAS.

 

It's available now on the O'Reilly Safari Books On-line even though the publish date listed there is 18Mar2016.

 

Paul

ballardw
Super User

SAS Macro language should not be considered in this comparison. The macro language generates text that is not specific to the data step.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1459 views
  • 3 likes
  • 4 in conversation