Chapter Contents |
Previous |
Next |
SAS/CONNECT User's Guide |
Purpose |
This example is a good use of RLS because (as in the previous example) it involves transaction-type processing and enables the local GUI to be used for data entry on the selected observations in the database.
However, if you were to use the SCL LOCATEC function, every observation would be transferred to the local session and compared against the specified criteria. The response time in this case would be poor, at best. These alternative programming choices emphasize the importance of being aware of the amount of data that local processing is requesting and minimizing this amount when using RLS.
Program |
signon os390; libname master REMOTE "hq.prod.data" server=os390; [1] rdsid = open("master.reserv", 'u'); [2] wherecls="resnum=" || "'" || resnum || "'"; rc = where(rdsid, wherecls); call set(rdsid); rc = fetchobs(rdsid, 1);
Open the remote Headquarters database. | |
Build and apply the WHERE clause to speed up retrieval. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.