BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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.
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
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.
deleted_user
Not applicable
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;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1171 views
  • 0 likes
  • 2 in conversation