DATA Step, Macro, Functions and more

How Do You Flowchart a SAS Program?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 127
Accepted Solution

How Do You Flowchart a SAS Program?

Is possible to generate flow charts out of the SAS code?


Accepted Solutions
Solution
‎03-30-2016 11:32 AM
Regular Contributor
Posts: 213

Re: How Do You Flowchart a SAS Program?

If you have SAS Enterprise Guide licensed and installed, you could try the 'Analyze for Program Flow' feature under the 'Program'-->'Analyze' menu options.

 

Hope this helps,

Ahmed

View solution in original post


All Replies
Solution
‎03-30-2016 11:32 AM
Regular Contributor
Posts: 213

Re: How Do You Flowchart a SAS Program?

If you have SAS Enterprise Guide licensed and installed, you could try the 'Analyze for Program Flow' feature under the 'Program'-->'Analyze' menu options.

 

Hope this helps,

Ahmed

Super Contributor
Posts: 408

Re: How Do You Flowchart a SAS Program?

Have you had a look at proc SCAPROC? That analyzes ther logic of your code while it runs. SCAPROC is also implemented when importing code into a Data Integration Studio (DIS) job. The resulting flow is a kind of flowchart in its own right.

 

Using EG or DIS as an alternative to coding is something I highly recommended. It will keep your logic in plain sight besides many more perks for all those code afficionados out there.

 

Hope this helps,

- Jan.

 

 

Frequent Contributor
Posts: 127

Re: How Do You Flowchart a SAS Program?

thanks Jan, I was not aware of it.

Super User
Super User
Posts: 7,413

Re: How Do You Flowchart a SAS Program?

Hi,

 

So you don't plan/document your code before you start working on?  To my mind > 90% of programming work involves planning, documenting, agreeing, and preparing validation plans and such like.  Actual coding is less than 10% of a task.  For instance, how would you go about validating a program, if your document it built from the program itself?  Here is a link to something used in a lot of other programming fields, called Software Development Lifecyle.  It goes through the stages of Planning, Documenting, Implementation, Testing, Lifecycle Management, and Retirement.  

https://en.wikipedia.org/wiki/Systems_development_life_cycle

Actual development is one step in a list of other steps, in my industry for instance we have to by regulation, specify what we will be doing before we start, to avoid bias, and also so that validation can independantly be done.  

 

It does also make your life a lot easier in many respects - if you dealing with data transfers for instance, these can be defined and agreed up front - the code for importing that data is already written (other than some syntax) in that document.  

Super User
Posts: 10,526

Re: How Do You Flowchart a SAS Program?

Perhaps the OP inherited something or is trying to understand some other code source.

Frequent Contributor
Posts: 127

Re: How Do You Flowchart a SAS Program?

The question was related to the potentiality of SAS: how Do You Flowchart a SAS Program? The scope was to know if SAS can do it or not.

So you don't plan/document your code before you start working on? That’s a too general question. It depends on the situation (e.g. complexity of the code, purpose of the analysis) anyway you can post it!

I actually do not write a flochart each time that I am using a program for some analysis (r, SAS, Phyton or whatever)

 

☑ This topic is SOLVED.

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

Discussion stats
  • 6 replies
  • 821 views
  • 2 likes
  • 5 in conversation