Desktop productivity for business analysts and programmers

Copy SAS Project in EG

Accepted Solution Solved
Reply
Contributor
Posts: 44
Accepted Solution

Copy SAS Project in EG

[ Edited ]

Hello,

 

Can someone tell me the best approach to make a indenpendent copy of a SAS code in EG server. When i do a make a copy of the sas code and paste it my personal directory and make some change and save it that change gets reflected in the server master copy since I the copy i made change is nothing but a shotcut of the copy in server location.

 

That's the precise problem I wanted to avoid and I wanted to create a independent copy that I can edit and save without impacting the master copy. The one way i can think of is manually opening the code and pasting that to a new program window. I wanted to keep that as the last option as I have a series of programs.

 

Thanks,

Anoop


Accepted Solutions
Solution
‎12-08-2016 12:49 PM
Super User
Posts: 7,445

Re: Copy SAS Project in EG

[ Edited ]

Once you open an existing .sas file as a program in EG, a link to the file is added to your current project (as you observed). To prevent writing back of code to the original file, you have two options:

- right-click on the program in the project tree, "save as" to another location; a new .sas file is created, and the link will now point to that.

- right-click on the program link in the project, select Properties, and then "Embed". Once you do this, the code is stored within the project file, but not in an external .sas file.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers

View solution in original post


All Replies
Solution
‎12-08-2016 12:49 PM
Super User
Posts: 7,445

Re: Copy SAS Project in EG

[ Edited ]

Once you open an existing .sas file as a program in EG, a link to the file is added to your current project (as you observed). To prevent writing back of code to the original file, you have two options:

- right-click on the program in the project tree, "save as" to another location; a new .sas file is created, and the link will now point to that.

- right-click on the program link in the project, select Properties, and then "Embed". Once you do this, the code is stored within the project file, but not in an external .sas file.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 44

Re: Copy SAS Project in EG

Thank you. The first option defintely works but I incline towards second as I have around 30 sas codes under the project. So i was trying to puruse the second option. But when I click the properties can you tell me how I need to embed. The below is what i see when I click on the program link (I understand the name Raw_Data is misguding but it's sas codes to extract the data).

 

SAS.jpg

Super User
Posts: 7,445

Re: Copy SAS Project in EG

That's not a SAS code, that's a process flow.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Contributor
Posts: 44

Re: Copy SAS Project in EG

yes. I did see what you said about the embed under SAS codes option. Thanks. One final questions before I close the thread. Is there option to move the entire project without going through each individual programs and modifying it.

 

Thanks,

Anoop

Super User
Posts: 7,445

Re: Copy SAS Project in EG

I'm afraid one can't do that automatically. The Project Maintenance menu does not have any option for that.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is solved.

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

Discussion stats
  • 5 replies
  • 279 views
  • 2 likes
  • 2 in conversation