Examples of Data Transfer Services (DTS) : Example 11. DTS: Uploading a Catalog That Contains Graphics Output
You can use the UPLOAD and
DOWNLOAD procedures to transfer
catalog entries that contain graphics output. By default, the catalog entries
are transferred individually and are re-created in the destination catalog
in alphabetical order. However, you can alter the order or grouping of the
catalog entries in the destination catalog by using SELECT statements in the
UPLOAD and DOWNLOAD procedures.
Assume that you have a catalog named FINANCE that has
two entries, INCOME and EXPENSE, which contain graphics output. You want to
download the two catalog entries that contain graphics output in the order
that they are stored on the remote host. For example, you want INCOME to appear
before EXPENSE, not alphabetically as the DOWNLOAD procedure would transfer
them by default. In addition, you have some catalog entries that are grouped
by the name GROUP1 and you want to preserve the grouping when the entries
are downloaded. This program preserves the order and grouping by using SELECT
statements.
proc download incat=rhost.finance
outcat=rhost.finance;
select income expense/et=grseg;
select group1;
run;
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.