Help using Base SAS procedures

Proc Cport

Reply
N/A
Posts: 0

Proc Cport

Is there a way to create a transport file for several members in a library but not all of them? I have been trying to use the select statement but cannot get it to work. I am running in a Unix environment, moving data to a new unix environment.
Super Contributor
Super Contributor
Posts: 3,174

Re: Proc Cport

Posted in reply to deleted_user
Use PROC COPY to create a separate "temporary" data library, subsetting the members as required, and then use PROC CPORT from the "temporary" data library.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: Proc Cport

Thanks Scott!

Also just tried this and it worked!
Been working on this for a while and was ready to pull my hair out!

filename cportout '/sasdata/rawdata/test_snap';
proc cport lib=snapshot file=cportout memtype=data;
select CUST_200812;
select CUST_200901;
select CUST_200902;
run;
Ask a Question
Discussion stats
  • 2 replies
  • 132 views
  • 0 likes
  • 2 in conversation