Desktop productivity for business analysts and programmers

Sharing PROC SQL code between multiple Enterprise Guide users

Reply
Contributor
Posts: 34

Sharing PROC SQL code between multiple Enterprise Guide users

I would like to share some of the code that I have written between multiple users.

 

Essentially, we have some complex data structures that I will be "flattening", allowing for a larger audience of users to access the data.

 

I have thought about using Stored Processes, however they do not seem to be wanting to return data sets within Enterprise Guide.

 

Another option would be a set of SAS programs / code files stored somewhere - either on our file servers or ideally within SAS Folders in the metadata.

 

Are there other alternatives I should consider, keeping in mind that we are limited to SAS Enterprise Guide as the tool?

 

(It seems Task Templates do not quite work as they require registering as DLLs at the installation path - being within a Citrix environment that is less than ideal from a practical point of view)

 

Thanks

Super User
Posts: 3,764

Re: Sharing PROC SQL code between multiple Enterprise Guide users

Posted in reply to f_rederik

If your SQL code involves single queries creating single tables then you could consider creating SQL views to share between users.

 

If your SQL is more complex then putting these in AUTOCALL SAS macros could be a good way to share as an AUTOCALL library can easily be set up centrally. 

Contributor
Posts: 34

Re: Sharing PROC SQL code between multiple Enterprise Guide users

Thanks for your reply! Apologies for not replying sooner - I need to set up the alert features on the forum!

We haven't found a good way to implement this and keep materialising datasets instead (creating unwanted vulnerabilities and lack of traceability).

Super User
Posts: 9,551

Re: Sharing PROC SQL code between multiple Enterprise Guide users

Posted in reply to f_rederik

When you prepare data for users, as an alternative consider to create ready-for-use datasets instead of views or program pieces that create the datasets on the fly.

You may prevent unnecessary runtime loads on the server(s) by trading some disk space.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Contributor
Posts: 34

Re: Sharing PROC SQL code between multiple Enterprise Guide users

Posted in reply to KurtBremser
Thanks for your reply! Apologies for not replying sooner - I need to set up the alert features on the forum!

We have ended up creating a limited selection of datasets...
Ask a Question
Discussion stats
  • 4 replies
  • 258 views
  • 2 likes
  • 3 in conversation