Chapter Contents

Previous

Next
SAS/CONNECT User's Guide

Example 1. RLS: Accessing Remote Data to Print a List of Reports


Purpose

The following example uses RLS to access a small portion of the data that exists in a remote SAS data set, in order to print a list of the reports that are being requested by the local workstation. This is a good use of RLS, provided the data set REPORTS.REQUEST has a small number of observations.


Program

   signon rempc;
[1]
   libname reports REMOTE 'd:\prod\reports' 
      server=rempc;
      data _null_;
      set reports.request;
      if (copy = "Y") then do;
         put "Report " report_name 
            " has been requested";
      end;
[1] Define a remote library to a local session. The value for SERVER= is the same as the remote session id that is used in the SIGNON statement.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.