In free SAS University Edition convert .sas7bdat to .csv - sas

I am using the free SAS university edition in the browser and would like to convert a data set into a csv format. How do I do this?
I have tried this but it doesn't work since the browser version doesn't use a traditional file path.

PROC EXPORT or any of the other solutions will work fine. However, you need to be able to identify the location of the shared folder you are using between SAS Studio/University Edition and your main computer.
Assuming you followed the instructions when you set up the SAS University Edition virtual machine, you have a folder located at the virtual path
/folders/myfolders/
(Or named differently if you named it something else.) That can then be used as the path to proc export.

Related

How to create SAS Enterprise Guide Project without using SAS EG?

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.

how to change the locale language on SAS?

the system options shows other than english on the SAS product, due to which some of the properties and also the help manual is not in english, how is it possible to change it? or do I have to install the SAS again?
As long as you installed the correct language(s), it's possible to run SAS in different languages. However, if you only installed one language, it will be sufficiently complicated that I would recommend an update installation (which is not a full reinstall).
This SAS technical support note covers this in some detail; it also recommends an update installation if you didn't install the language originally.
What you can do is look at the SASFoundation folder in your install, usually one more folder deep (the version), and then look at the nls folder. nls refers to language support, and it should have one folder for each language installed, including Unicode support and DBCS support. \nls\en will exist if you installed English.
If that's the case, you can edit your sasv9.cfg to point to the config file you want to use - ie, the \nls\en config file. It probably points to whatever you currently are running.
You also can on the fly run one or the other simply by including in the shortcut or launch program the -config option pointing to the config file you want.

How can we import files from PC directly in SAS University Edition?

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

SAS %sysget(SAS_EXECFILEPATH) doesn't exist

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"

how can i create an excel file using Interop on c++

I've searched a lot of info, about the easiest way to create and edit excel files to save some login and passwords of my program. I've seen lots of C# methods and I don't understand it a lot.
I've added a reference to Visual Studio 2010 Microsoft.Office.Interop.Excel (I'm using Office 2010).
I don't know how to take this further, however; what headers should I add, what else should I do? I can't find any tutorial of C++ using this on their projects. I just want something simple.
EDIT:
I will run my program on a pc that has Office 2010 installed.
read these
http://support.microsoft.com/kb/216686/en-us?fr=1
http://www.codeguru.com/cpp/data/mfc_database/microsoftexcel/article.php/c11745/Microsoft-Excel-Automation-Class.htm
Does the system where your application will run on have Excel installed or not?
If it does, you can use indeed use Excel as a COM component. https://learn.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-excel-from-c contains an example on how to do this.
If your system does not have Excel installed, you need to use a 3rd party library to create the Excel files for you. Just Google for "create excel files without excel" and you will find dozens of example code.