You are on page 1of 1

Proc Datasets (statements copy, move, kill, save, modify, rename, delete) - SAS Guide

Page 1 of 1

SAS Guide
Contact Sasbuddy SAS By Example and Real Scenarios

Search this site

Join SAS Forum and Get Answers to your queries


Tek-Tips SAS Solutions Forum

Proc Datasets (statements copy, move, kill, save, modify, rename, delete)

Navigation
SAS Buddy Home - SAS Guide Reading External Files Handling Mix Record Types; use of single trailing @ Reading Delimited files (Reading CSV files) - SAS DSD Option Reading multiple external files - SAS FILEVAR Infile statement option Reading one Record scattered over multiple lines SAS column Input - Reading External text Files SAS Formatted Input Reading External text Files SAS List input - Reading External text Files SAS Named Input - Reading External text Files INFILE statement options FLOWOVER MISSOVER STOPOVER TRUNCOVER SAS DataSet options (IN= END= Where= Keep= Drop=) SAS IN= option SAS KEEP= option, SAS DROP= option SAS Where= Option SAS Merge Statement Combining Datasets SAS Update Statement Combining Datasets SAS Interleave - Combining Datasets using BY statement SAS retain statement and first. last. options Proc Datasets (statements copy, move, kill, save, modify, rename, delete)

Variable Data Printing Customize your database printing Certificates, Tickets, ID Dell storage To take your business to new levels W/ fluid data technology Looking for Your Friend? Find Your Friend on Facebook. Sign Up Free Now!

Proc datasets is very much useful SAS procedure; used to manage sas datasets in bulk without actually changing the data . Its usefulness lies in that unlike data step it wont iterate the observations instead will work on the metadata to do the changes. It can do following operations:
1. Deleting all the datasets in library in one go

Proc datasets lib=xyz kill; Quit; run;


2. copy or moving all or some of the datasets between the libraries

proc datasets; copy/move in=xyz out=lmn; /* where xyz and lmn are libraries*/ select/exclude dataset1 dataset2....; /* mention dataset names here */ quit; run;
3. View the content of all the datasets in the library

proc datasets lib=xyz; /* this code displays information into log*/ quit; run; proc contents data=_ALL_ ; /* This code displays information into output*/ run;

https://sites.google.com/site/sasbuddy/proc-datasets-copy-save-move-kill-modify-ren... 15-03-2012

You might also like