Hello, i like to move sas datasets from windows to linux in bulk (*). I am not quite sure if proc cport/cimport can be used to move sas datasets in bulk. Please advise. Thanks!
The simple answer is yes.
An alternative method, if you have SAS/CONNECT installed on both servers is to use PROC UPLOAD which can move entire SAS libraries with one statement. UPLOAD handles the data conversion on-the-fly so you don't need CPORT / CIMPORT.
Since both Windows and Linux use the same processor architecture, I would simply copy the files first and test them on Linux.
PROC CPORT/CIMPORT can transport whole libraries in a single file.
I think Kurt is recommending you simply copy the files using non-SAS tools (e.g. sFTP, Samba, whatever) for copying files between the environments. SAS datasets are just files. You will pay a small performance price on the linux side when reading files that were written by Windows, but if that cost is too high, you can always translate / recreate the datasets on the linux side after you have moved the files.
Thank you KurtBremser. would you please provide any doc/link to refer to transfer complete library? I see document with exporting single sas dataset.
Change the memtype to DATA from CATALOG for only the data sets. If you leave off the memtype the default will be to export the data and catalogs.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.
Find more tutorials on the SAS Users YouTube channel.