BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Sir_Highbury
Quartz | Level 8

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

1 ACCEPTED SOLUTION

Accepted Solutions
AhmedAl_Attar
Rhodochrosite | Level 12

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

6 REPLIES 6
AhmedAl_Attar
Rhodochrosite | Level 12

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

jklaverstijn
Rhodochrosite | Level 12

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.

 

 

Sir_Highbury
Quartz | Level 8

thanks Jan, I was not aware of it.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.  

ballardw
Super User

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

Sir_Highbury
Quartz | Level 8

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)

 

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
  • 6 replies
  • 6090 views
  • 2 likes
  • 5 in conversation