Architecting, installing and maintaining your SAS environment

SAS Code promotion from Dev to Prod

Accepted Solution Solved
Reply
Contributor
Posts: 41
Accepted Solution

SAS Code promotion from Dev to Prod

Hi,

 

     We have recently implemented SAS and please let me know what are the different ways to promote the content from Dev to Prod environment.  Pointers to any documents are also appreciated.

 

Thanks


Accepted Solutions
Solution
‎04-25-2016 03:19 PM
Super User
Posts: 5,255

Re: SAS Code promotion from Dev to Prod

Just right click on the item you wish to export.
The export file can be saved wherever you feel works for you, it's handy if that location is accessible from the target environment.
.sas files are stored in the default location in your SAS configuration directory.
I sugest that you browse the documentation and papers on the subject.
Data never sleeps

View solution in original post


All Replies
PROC Star
Posts: 1,230

Re: SAS Code promotion from Dev to Prod

I don't think you've given enough information for people to be able to help you.  What sort of environment are you working in?  How is it structured? etc.  Some people separate /DEV and /PROD code just with different directories. So promotion can mean as little as copying a file.  Other folks have separate servers for /DEV and /PROD.   Plenty of folks use different version control tools.  So there isn't a single way in SAS to promote code.

 

Perhaps it would help if you describe how you handle promotions of non-SAS code in your environment.

Contributor
Posts: 41

Re: SAS Code promotion from Dev to Prod

We have dev on different server and prod on a different server. SAS is installed on Linux and clients on windows. We use tools like winscp for copying the files to and fro from the server`

PROC Star
Posts: 1,230

Re: SAS Code promotion from Dev to Prod

And when you say promote SAS code from dev to prod, you mean just .sas files? Or will you need to promote other content (e.g. SAS metadata for stored processes, DI jobs, etc.).

You have a DEV Linux server and a PROD Linux server? Then one way to promote .sas files would be to script copying files between the two servers. It's possible this could be done with SAS, but probably there are better utilities. As I don't have separate servers for DEV and PROD (sigh), I haven't played with this much. Will look for comments from others.
Contributor
Posts: 41

Re: SAS Code promotion from Dev to Prod

Both Dev and Prod are linux servers. Developers will develop the code only in dev environment and the same code has to be moved to Prod. I mean everything such as .sas files, Metadata of the sas content.

SAS Employee
Posts: 2

Re: SAS Code promotion from Dev to Prod

[ Edited ]

If your Dev and Production environments have been installed and maintained as it's meant to be by Change management best practices, you should normally just copy the SAS pgms through servers. Eventually, if there are some naming or similar differences, it should be managed by code.

Same for metadata objects, but normally it's done manually by the Administrator.

You can refer here.

Super User
Posts: 3,101

Re: SAS Code promotion from Dev to Prod

I would strongly recommend you consider using change management tools that can not only automatically deploy from Dev to Prod but also track, trace and secure all of your SAS code development. For medium to large projects where there are more than just a handful of programs, and program sizes are creeping up into thousands of lines then I'd say such tools become both essential and best practice.

 

Most likely your organisation is already using such tools so I would check those out first.  

Super User
Posts: 5,255

Re: SAS Code promotion from Dev to Prod

Copying. Sas files between environments is not best practice.
You normally use the metadata export and import tools. In the target environment you will deploy the jobs for scheduling which will create new .Sas files adopted to the metadata in that environment.
Data never sleeps
Contributor
Posts: 41

Re: SAS Code promotion from Dev to Prod

Thanks LinusH.

 

What are the tools that can be used for metadata export and import?

 

Where the metadata and .sas files are saved/stored?

Solution
‎04-25-2016 03:19 PM
Super User
Posts: 5,255

Re: SAS Code promotion from Dev to Prod

Just right click on the item you wish to export.
The export file can be saved wherever you feel works for you, it's handy if that location is accessible from the target environment.
.sas files are stored in the default location in your SAS configuration directory.
I sugest that you browse the documentation and papers on the subject.
Data never sleeps
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 9 replies
  • 979 views
  • 1 like
  • 5 in conversation