As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tip of the Day:September 11

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

* Sample SAS Program;
filename in saszipam 'c:\test.zip';
 
data _null_;
    infile in(test.log);
    input;
    put _infile_;
 
    if _n_ > 10 then stop;
run;

A currently undocumented "filename engine" is available in SAS 9 that can be used to read from compressed ZIP files directly. You simply specify the engine SASZIPAM on a filename statement, and then specify the file within the ZIP file that you wish to read. In the example shown, test.zip contains a number of files. We read test.log by specifying in(test.log), where in is the libref and test.log is the file to be read from the zip file.


Submitted By Sridevi Chandrasekaran



Feel free to comment on this tip.


Prior tip - Next tip - Random Tip

Submit a Tip