This example maintains
the original ordering and grouping when transferring catalog entries
that contain graphics output. Assume that you have a catalog named
FINANCE that has two entries that contain graphics output, INCOME
and EXPENSE. You want to download the two catalog entries that contain
graphics output in the order in which they are stored on the server;
that is, you want INCOME to appear before EXPENSE, not alphabetically
as the DOWNLOAD procedure would normally transfer them.
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.
Remotely submit the
following program to transfer these entries in the order that you
specify in the first SELECT statement and in the group that you specify
in the second SELECT statement:
options nocstatus;
rsubmit;
%setup(supio);
proc catalog cat=permdata.testcat;
copy out=work.finance et=grseg;
run;
quit;
proc catalog cat=work.finance;
change G3D= income /et=grseg;
change GPLOT=expense/et=grseg;
change TEMPLATE=GROUP1/et=grseg;
run;
quit;
libname rhost 'work' $loglib=yes;
endrsubmit;
libname rhost 'work' $loglib=yes;
rsubmit;proc download incat=rhost.finance
outcat=lhost.finance;
select income expense et=grseg;
select group1.grseg;
run;