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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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