Is possible to generate flow charts out of the SAS code?
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
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
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.
thanks Jan, I was not aware of it.
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.
Perhaps the OP inherited something or is trying to understand some other code source.
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)
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.
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.