Using Remote Connect |
You can use Transfer data on the Remote Connect menu to upload (transfer from a local to a remote session) or download (transfer from a remote to a local session) SAS tables, SAS catalogs, external files, or members of a SAS data library, from one SAS session to another. Additionally, you can download graphics output from a remote session to a local session. To assist you with uploading and downloading data, you can assign librefs and filerefs in the local or remote session, view the contents of a remote table, or view a remote library listing from within the WorkPlace menu's Remote Connect item. Make sure you are connected to the remote session before you transfer the data.
In this section, you transfer the HOUSES table from the local SAS session to a remote table called HOUSES. You also view the contents of the remote HOUSES table and view the contents of the remote SASUSER library.
Instructions |
SelectTasks Remote Transfer data Upload Upload a SAS TableThe Upload SAS Table window appears.
Upload SAS Table Window
Select the remote session from the list that is shown at the bottom of the Upload SAS Table window. For this example, z/OS Connection is selected. If you have only one remote session, then you do not need to perform this step.
Select , and then select the SASUSER.HOUSES table. For information on selecting tables, see Selecting a Table.
Select . The Specify Remote Table window appears.
Specify Remote Table Window
In the Table field, type HOUSES as the name of the remote table. Select Permanent. In the field next to Permanent, type SASUSER as the permanent remote library in which you want to store the new HOUSES table. By creating a permanent table of SASUSER.HOUSES, you can remotely run the program that you create and save in the next section.
Select . The HOUSES table is uploaded from the local host to the remote host into a permanent table called SASUSER.HOUSES. A window appears showing the progress of the upload. When the upload is complete, a message appears indicating that the upload completed successfully.
Note: If the table being uploaded is small, then the window that shows the progress of the upload appears only briefly on the display.
To view the contents of the table that you just uploaded to the remote system, select Tasks Remote Transfer data Utilities Remote table contentsThe Remote Table Contents window appears.
Remote Table Contents Window
In the Table name field, type SASUSER.HOUSES as the name of the table whose contents you want to view.
Select the remote session that you want to use from the list in the window. For this example, z/OS Connection is selected.
Select . The contents of the SASUSER.HOUSES table that is on the remote host appear in the Output window.
Remote Table Contents Output
Use the scroll bars or the UP and DOWN function keys, depending on your operating environment, to display the rest of the contents.
Depending on your operating environment, when you are in the Output window, you may need to continue using the DOWN function key until all of the output is viewed before returning to the SAS/ASSIST window. You do this step to ensure that any procedures that are running in the Output window are completed.
To return to the WorkPlace menu, use one of the following methods, according to your operating environment:
If you want to view the contents of a SAS data library on a remote host, follow this selection path:Tasks Remote Transfer data Utilities Remote library listingThe Remote Library Listing window appears.
Remote Library Listing Window
In the Libref field, type SASUSER as the libref of the remote library that you want to list.
Select the remote session that you want to use from the list in the window. For this example, z/OS Connection is selected. If you have only one remote session, then you do not need to perform this step.
Select . The contents of the SASUSER library appear in the Output window.
Remote Library Listing Output
Use the scroll bars or the UP and DOWN function keys, depending on your operating environment, to display the rest of the contents.
Depending on your operating environment, when you are in the Output window, you may need to continue using the DOWN function key until all of the output is viewed before you return to the SAS/ASSIST window. You do this step to ensure that any procedures that are running in the Output window are completed.
To return to the WorkPlace menu, use one of the following methods, according to your operating environment:
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.