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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1423 views
  • 3 likes
  • 4 in conversation