The SAS Output Delivery System and reporting techniques

where can I look the source code of some procedure?

Reply
N/A
Posts: 0

where can I look the source code of some procedure?

Where can I look the source code of some procedure? for example, proc sort. I want to look the source code of 'sort'. Thanks a lot
SAS Employee
Posts: 174

Re: where can I look the source code of some procedure?

The source code of SAS software is proprietary. Questions about the behavior of PROC SORT or other procedures are appropriate, of couse. Tech Support is good at answering those questions.

-- David Kelley, SAS
N/A
Posts: 0

Re: where can I look the source code of some procedure?

That means I can not look the source code for any procedure. Sometimes I don't understand what detail method to be used to write the procedures when I look the documents about the procedures. I just want to look the source code and check the method if I want and then I can decide if i use this procedure in my programming. By the way, I am also using another software "matlab" in my work. I can look the source code in this software. So I think that I can do it in SAS. Thank you, David.

Qionglin
SAS Super FREQ
Posts: 8,740

Re: where can I look the source code of some procedure?

Hi:

As David said, SAS code -- the code behind the procedures -- is proprietary and you cannot see that code. The documentation is your best bet to understand how the different options can affect the outcome of a procedure. If you are not clear, after reading the documentation, about how a particular option or setting will affect your output results, again, Tech Support can help you figure out the best means to accomplish what you need.

If you are using SAS Enterprise Guide, SAS Learning Edition or SAS/Assist, those are GUI front ends that do hide the generated code from you. Tech Support can help you figure out the correct method to use with each of these interfaces to preview and save the generated code.

I always find that the examples in the SAS Sample programs are a great deal of help in figuring out the most common usage situations. If you have SAS installed on your desktop, this click path:
[pre]
Help--> SAS Help and Documentation -->
Contents (Tab) --> Learning to Use SAS -->
SAS Sample Programs --> Base SAS -->
Grouped or Sorted Observations, Chapter 10 [/pre] will show you many examples of using PROC SORT, including the syntax needed to get rid of duplicate observations and to sort in descending order.

I love the SAS Sample programs because they are practical examples of the syntax and they generally come as a complete program, including data, so you can cut and paste and then run the code to try to understand how the different syntax options affected the output.

cynthia
N/A
Posts: 0

Re: where can I look the source code of some procedure?

If I were a programmer in a scientific software company, I would like to see the SAS code, wouldn't I ?

I guess it's the reason why you can't see it. But I think the SAS help is pretty much clear.
Ask a Question
Discussion stats
  • 4 replies
  • 154 views
  • 0 likes
  • 3 in conversation