Ok, that helps. So, let's explore the possibilities. As a side note, I will be releasing a WPF app on GitHub this week/next that unwinds the egp files for you. It is not open source: you can just use the utility. I can enhance as needed.
On to SAS/C# integration via an API. The way I have done it is to wrap it in a kestrel based app, install as a Windows Service, and let it always run in the background on a server. Front it with swagger (OpenAPI), and execute SAS behind the scenes. Stack the sas.exe instances in a queue and just pop the queue as a request comes in. Put it back in queue when completed. Seems complex but pretty easy actually (I have some code I can share). SAS has a start up time cost which you want to eliminate by holding it in memory. The SAS instances are very, very light so you can queue up several hundred w/o an issue. YMMV.
For executing EGP files specifically, look at how to execute EG code from the command line or using SAS Integration Technologies. I would leave that to the last, however, and get everything else in place. Get kestrel running, get swagger running, get a demo service that runs a command line of some sort. Integrate SAS at the end.
... View more