UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

SAS Code Fragments
Reading a SAS CPORT File

 
* assign filename "in" to CPORT file "winners.cpt";
filename in "winners.cpt";

libname out '/work/';

* read from "winners.cpt" and save in library "out";
proc cimport file=in library=out;
run;

* use proc contents, proc print, and proc means to verify ;
*   that out.winners was created properly;
* change winners to the name of your data member;

proc contents data=out.winners;
run;

proc print data=out.winners(obs=10);
run;

proc means data=out.winners;
run;

How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California