Stanford HRP 223 - Permanent Formats and Working Across Platforms

Unformatted text preview:

Slide 132bit vs. 64 bit SASFormats Saved in LibrariesWhere to Find FormatsSharing Filesproc cportproc cimportNo Formats…Permanent Formats and Working Across Platforms32bit vs. 64 bit SAS•The different versions of SAS optimize datasets and formats to work as fast as possible. You can open a 32 bit SAS dataset with a 64 bit version of SAS but it is slower than necessary. •Formats saved in permanent libraries (as catalogs) may have problems opening on different platforms/operating systems.Formats Saved in Libraries* x "mkdir C:\Projects\hrp223\cportExample";libname cportex "c:\projects\hrp223\cportexample";proc format library = cportEx;value isMale0 = "Female"1 = "Male". = "Missing"other = "** bad **";run;Save the format here instead of in work. SAS is pushing this idea.Where to Find Formats•SAS and EG look for formats in the work library. You can tell it to look in other libraries with a line like this:options fmtsearch = (cportEx work);Your library name goes here.Sharing Files•If everyone on your team uses the same version of SAS you can send datasets and catalogs via encrypted email. Send both the files in the library and teach the recipient about options fmtsearch . data cportEx.stuff;format sex isMale.;input ID age sex;datalines;1 83 12 82 0;run;proc cport•If you need to share datasets and formats across platforms (including 32 vs 64 bit Windows SAS), store the library in cport file and send that (via encrypted email).proc cport library = cportEx file="C:\Projects\hrp223\cportExample\example.cport" memtype = all;run;Send this one.proc cimport•Use proc cimport on the other machine:libname cportEx "C:\Projects\hrp223\cportExample";options fmtsearch = (cportEx work);proc cimport library = cportEx file = "C:\Projects\hrp223\cportExample\example.cport" ;run;No Formats…•If somebody forgets to send you the formats you can include this line and the data will display unformatted without errors:options


View Full Document

Stanford HRP 223 - Permanent Formats and Working Across Platforms

Download Permanent Formats and Working Across Platforms
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Permanent Formats and Working Across Platforms and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Permanent Formats and Working Across Platforms 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?