Desktop productivity for business analysts and programmers

Reverse engineer SAS code into process flows

New Contributor
Posts: 2

Reverse engineer SAS code into process flows

I have a nicely written piece of SAS code. This code has been developed and runs in my client's environment.

My client wants me to design a diagram representing the workflow, just like those beautiful process flows SAS Enterprise Guide can create.

But my client only has purchased SAS Base + Graph

On the other hand, on my personal PC I have SAS Enterprise Guide 4.2, SAS Data integration studio 4.21, SAS Enterprise miner client 6.1, and lots of other SAS applications

I'd like SAS to analyze my code, and give me a nice workflow / diagram (not an E/R diagram, just a simple representation of a sequence of steps)

(note: the original data sources can’t be accessed from, or replicated to, my PC. SAS must assume I know what I’m doing)

Any idea?

Thanks in advance


Occasional Contributor
Posts: 10

Reverse engineer SAS code into process flows

Hi Mike,

With DI Studio you can create 'empty' representations of what your process flow will look like.  I've done this before as an early stage of development to get a visual of my processes...just drag-and-drop as you want . . .the key is to label or provide breif descriptions for each module/transformation you use. You also would want to dummy up some target datasets, etc. I'm certain the same will work in EG, just get creative, it doesn't have to be a functioning process flow, right....just a visualization, correct ?.

I know that DI Studio can also take your code and create somewhat of process flow for you but if you don't have the data available that may not be an option.


Good luck!

New Contributor
Posts: 2

Re: Reverse engineer SAS code into process flows

I've tried with EG, but creativity doesn't seem to work...

As you said, I just want a visualization of the process that is implicitly embedded in the code I've already written.

I also tried with a sample code that uses datasets that are saved on my PC, but still I dont't know how to tell EG that the code must be reverse engineered to produce the process diagram...

Any suggestions?

Super Contributor
Posts: 349

Re: Reverse engineer SAS code into process flows

Hi Mike,

You can try using SAS DI studio 4.21.File->import->Import SAS Code.

Hope this helps.



SAS import code.png

Ask a Question
Discussion stats
  • 3 replies
  • 3 in conversation