Desktop productivity for business analysts and programmers

SAS EG how to extract, edit and insert a Program in .egp WINDOWS/Linux

Reply
New Contributor
Posts: 2

SAS EG how to extract, edit and insert a Program in .egp WINDOWS/Linux

I have a scenario where .egp's are created on Windows environment. As part of migration these need to be migrated to UNIX/Linux server and from EG 4.1 to 4.2 and we have to make the programs comply with LINUX/Unix standards (like font casing) and the directory paths to the linux or unix environment.

As we have around 300 .egp's to be migrarted, Say in the first go if we use migration wizard on sas eg 4.2 version to automatically have the .egp's converted to 4.2 standards, the bigggest question is how to incorporate changes to the sas programs.Is there any automated way to extract the program from respective node in .egp, edit and insert at the same node.

Thanks in advance.

Trusted Advisor
Posts: 1,056

Re: SAS EG how to extract, edit and insert a Program in .egp WINDOWS/Linux

I think you're on fairly firm ground using the migration wizard for as much of the conversion as you can do. I assume your Linux/Unix directories will be available to Windows machines via Samba or some such facility to move the projects from Windows.

There are some possibilities for modifying the programs as you describe, but I don't think any of them are easy. Could you provide more information about what changes you need to make outside of those that can be automated with the wizard (you mention font casing and directory paths).

Tom

New Contributor
Posts: 2

Re: SAS EG how to extract, edit and insert a Program in .egp WINDOWS/Linux

Thanks Tomkari for the reply..

Here is the additional info as requested..

Changes need to be made to the programs...

1) changing font as unix is case sensitive

2) windows path references to unix/Linux server paths

Thanks and Happy new Year

Trusted Advisor
Posts: 1,056

Re: SAS EG how to extract, edit and insert a Program in .egp WINDOWS/Linux

Okay, it's becoming a little clearer. But it does lead to some new questions.

Please confirm that this is the situation you're in. You have SAS programs that you've created in the EG code editor. For development and testing, you used references to your local drives and directories on your Windows machine, running the SAS instance on your local machine. Now you want to run these SAS programs in an Unix environment, and change the directories and files to those on the Unix machine. Is that it?

Because offhand, I can't think of any file references that would come up if you are using Enterprise Guide tasks to do your work. But if that is an issue, please let me know where this is happening as well.

Tom

Contributor
Posts: 71

Re: SAS EG how to extract, edit and insert a Program in .egp WINDOWS/Linux

It sounds like you are not only doing an Enterprise Guide project migration, but also a SAS platform migration (Win to LINUX), which is a completely different exercise.

In short, EG projects are zip files. If you could unzip all of your EG projects, the files in the zip archive could be updated with a find-replace script to replace all Windows folder names with LINUX folder names. Then the files are re-zipped. But this assumes you have a mapping of all Windows folders into the corresponding LINUX folders.

Otherwise you might have to edit the projects one by one and just use the manual find-replace function. Data libraries can be switched using the project manager in EG, but not the hardcoded folder names.

Ask a Question
Discussion stats
  • 4 replies
  • 566 views
  • 0 likes
  • 3 in conversation