How do I copy a dataset to my clipboard in SAS Studio? There are situations when I want to copy a whole dataset or just specific rows to my clipboard so that I can paste in another application. I know I can always export it to Excel or whatever, but just being able to copy directly to the clipboard is really handy. Selecting the rows and hitting Ctrl+C doesn't work.
The contents of SAS data sets are in a pretty proprietary format and almost nothing would be able to use "pasted" data at data set or row level.
If you don't want to "export" then you could run Proc Print for the desired rows (observations numbers using the OBS= and FirstObs= data set options) and copy from the result window.
Or describe what you want to do with that pasted data. We often see people taking data from SAS to perform actions that can be done directly in SAS.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.