Help using Base SAS procedures

What does it mean by "PROC SQL makes two passes through the data" ?

Accepted Solution Solved
Reply
Contributor
Posts: 22
Accepted Solution

What does it mean by "PROC SQL makes two passes through the data" ?

I am reading a PROC SQL tutorial and got stuck up in these following lines - 

 

" When processing a set operation that displays only unique rows (a set operation that contains the set operator EXCEPT, INTERSECT, or UNION), PROC SQL makes two passes through the data, by default. For set operations that display both unique and duplicate rows, only one pass through the data is required "

 

So what does it mean by the term "Pass through the data" ? Any relevant link or explanation or even brief clue will be highly appreciated. 


Accepted Solutions
Solution
‎05-29-2017 01:01 AM
Super User
Posts: 6,936

Re: What does it mean by "PROC SQL makes two passes through the data" ?

It means that the dataset will be read twice, causing more I/O and costing more time.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Solution
‎05-29-2017 01:01 AM
Super User
Posts: 6,936

Re: What does it mean by "PROC SQL makes two passes through the data" ?

It means that the dataset will be read twice, causing more I/O and costing more time.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 153 views
  • 1 like
  • 2 in conversation