Example 2: Administering Server Data Sets from a Client

Purpose

From a client session, you can use Compute Services to perform administration tasks on data sets that are located on the server.
This program administers password protection to the TASKLIST data set and backs up a data set that is named CURRENT.

Program

rsubmit;
   proc datasets lib=tsolib;
      /**************************************/
      /* Add password SESAME to server      */
      /* data set TASKLIST.                 */
      /**************************************/
   modify tasklist (alter=sesame);
   run;

      /**************************************/
      /* Maintain a week's worth of backup  */
      /* copies of data set CURRENT.        */
      /**************************************/
   age current backup1 - backup7;
   run;
   quit;
endrsubmit;