I want to create a SAS Enterprise Guide project without using SAS EG. Thank you in advance for you answers.
Tried creating a zip file with SAS programs and renaming the .zip extension to .egp, but it does not work.
I'm almost certain that there's some legal issue with reverse engineering it.
That being said - .egp does seem to be an archive.
For the most part,
it contains folders of generated names for each program in the .egp, as well as a folder with a generated name for the built in git repository.
and probably most importantly a .xml file describing the project, It also contains any embedded code.
I don't have time to go through it, but if you have Enterprise Guide licensed and just don't have access to it, perhaps ask a colleague to send an example project.
If instead of creating a *.zip file, you create a *.txt file.
Changing it's extension to *.sas will create a SAS program.
Related
I'm looking for editing a custom visual I found in the internet (its tooltip shows some data I'd like to hide).
I found out that the pbiviz file is actually a zipped folder, I extracted it and got a package.json and a folder with another .json containing the source code of the visual. The source code is minified, but I managed to make the fix there.
Now I don't know how to pack the pbiviz file again. I tried to zip the folder and rename it to .pbiviz, but Microsoft Power BI tell me it "isn't a valid custom visual" (I tried it also without editing, the error message is the same, what makes me conclude this isn't the right way to package it).
I'm trying to use Microsoft developing tools to build this package, but I still couldn't make it work.
TL;DR: I need help to edit a pbiviz source code, package it back and use on Power BI.
Instead of zipping back, you can keep the original .pbviz file, open it with a software like 7-zip and replace the files you need. This way, Power BI still recognizes it like a valid custom visual.
Important: it's necessary to replace the guid in every file for a new one, otherwise your fix will be replaced by the version on marketplace.
I want to have a shared folder inside my SAS server. Very much like a library but where a small group can store and share .sas code files and browser them inside the SAS Eguide.
I don't want stored processes, because people should directly access and edit the source code inside there local eguide flow.
Can I add a folder to the Files folder?
On the file system, add a symlink/short cut to the shared location where the files folder points.
In your Enterprise Guide, if it has the same standard setup as mine,
you can save a PROJECT which file extension is .EPG directly in your metadata server.
Since a project is a collection of sas programs.
"Shared Data", that is present in every metadataserver configuration, is the metafolder where you can create a folder, if you have the permissions, where save your project that can be shared with anyone of your group that can have permissione to read/write that metafolder.
I suggest this way since it's a way to embed and share easily projects, and so sas programs.
I am using SAS University Edition and i have to import files into SAS software. I have tried using 'infile' and 'proc import' statements but these are not working when accessing the files directly from PC.
Is there a way to access the files directly from PC in SAS UE?
Yes.
In the folder where you have SAS University Edition VM located
created a folder called myfolders.
In the VM create a shared folder to that folder using the VM
settingsn th
Move the file to that location and use a UNIX path that is case sensitive to refer to the file in your infile statement.
There are other ways but this is the simplest to start off with.
Detailed instructions vary slightly based on your OS (MAC/PC) and VM(ORACLE/VMWARE). Please see the SAS Analytics Help Centre FAQ
http://support.sas.com/software/products/university-edition/faq/main.htm
and here:
https://communities.sas.com/docs/DOC-7211
Is there any solution to open SAS .egp file without having SAS installed on my pc? I need to open project.egp to check my old code but I don't have SAS anymore. Is there any other way to do that?
A .egp file is a zipped set of xml files (and other things). If you change the extension to .zip, you can open it with any unzipping program, and see the contents. It is possible to extract programs and such from there at that point, though it's not necessarily easy to do as it's fairly messy.
.EGP files contains no code, it's just their possible execution order that might be showing.
You need to open the .SAS files imported in the EGP to see the code and to open a .SAS file just use any text editor!
You can try to open it in Easy Grade Pro 4.0.3
I am running this simple macro:
%macro grabpathname ;
%sysget(SAS_EXECFILEPATH)
%mend grabpathname;
%put %grabpathname;
And I am getting the following error:
WARNING: The argument to macro function %SYSGET is not defined as a
system variable.
I am using Enterprise Guide 5.1
What am I doing wrong? I need this as I want to use relative paths for my programs.
As per [this note](http://support.sas.com/kb/36/613.html, SAS_EXECFILEPATH isn't defined anywhere but in DM sessions of SAS on Windows. In EG you don't have access to that.
I would suggest considering what you're using it for. If you're using it to identify where other programs are stored, in EG you should be able to generally avoid using that style of coding and instead incorporate all necessary programs into your EGP. If you're using it to identify data locations or output locations, I suggest writing promts or macro variables to define that, and having a single EGP to run multiple inputs/outputs rather than copying it to multiple directories.
One of the new features added to SAS Enterprise Guide 4.3 is the ability to have a relative reference to an external file. Since you're on 5.1, this should apply to you as well.
"In previous releases of SAS Enterprise Guide, the project file stored external file references as absolute paths. In SAS Enterprise Guide 4.3, these external file references are stored as relative paths, which makes it easier for you to move the project file, data, and programs to a different folder or a different machine. In SAS Enterprise Guide 4.3, use pathnames that are relative to the current location of the project file instead of using a full path."
-- SAS Enterprise Guide: New Features in 4.3
To enable the functionality for your Enterprise Guide project:
Open the project
File | Project Properties | File References
Check the box "Use paths relative to the project for programs and importable files"