Desktop productivity for business analysts and programmers

How can I move EG projects including the SAS program files in one operation?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 79
Accepted Solution

How can I move EG projects including the SAS program files in one operation?

Hi, as said in the title, I need to re-organize some folder locations. When I create an EG project and save it the first time, I have to chose where to save it. Later when I add SAS program to the project I save these at the same location as the *.egp file. I've found this to be impractical in the sens, that if I want to move the project, - and do this in a copy/paste operation, then the SAS program files are still referenced to the old location. If I were to move them (the SAS program in the project) as well in the copy/paste operation, the project does not find them, because it looks in the old location.

I find this kind of unpractical, as it can happen sometimes that oen needs to move a project and its associated files at the same time.

Regards Poul


Accepted Solutions
Solution
‎02-12-2015 05:10 AM
Esteemed Advisor
Posts: 6,646

Re: How can I move EG projects including the SAS program files in one operation?

Talk about steep learning curves Smiley Wink

When you do New - Program in Enterprise Guide, the code stays embedded in the project file and is saved with it until you do Save as.. on the program.

If you open an external program, a link to the external file is created within the project. To embed this, right click on the program name in the project tree, select Properties, and there you will find a button Embed.

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

View solution in original post


All Replies
Esteemed Advisor
Posts: 6,646

Re: How can I move EG projects including the SAS program files in one operation?

If easy moving is your objective, then keep the SAS program embedded in the project, that way you only have one file to move.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Frequent Contributor
Posts: 79

Re: How can I move EG projects including the SAS program files in one operation?

Sorry Kurt, what do you mean 'embedded'? I always supposed, that the EG associated SAS programs existed as separate files located in folders, and that what the project did was to 'collect' these in a project list of SAS programs. What you say, indicate that there is another way of doing it. That must have eluded me, when I switched to EG fra base PC SAS.

Regards

Poul

Solution
‎02-12-2015 05:10 AM
Esteemed Advisor
Posts: 6,646

Re: How can I move EG projects including the SAS program files in one operation?

Talk about steep learning curves Smiley Wink

When you do New - Program in Enterprise Guide, the code stays embedded in the project file and is saved with it until you do Save as.. on the program.

If you open an external program, a link to the external file is created within the project. To embed this, right click on the program name in the project tree, select Properties, and there you will find a button Embed.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Community Manager
Posts: 2,691

Re: How can I move EG projects including the SAS program files in one operation?

Another approach: you can use the "relative path" feature in SAS Enterprise Guide to keep your EGP file and SAS files all resolving properly, no matter where you move them.  See this topic for more details:

http://blogs.sas.com/content/sasdummy/2012/10/29/scm-with-sas-eg/

Chris

☑ This topic is SOLVED.

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

Discussion stats
  • 4 replies
  • 1278 views
  • 1 like
  • 3 in conversation