/******************************************************************************
 * Programme : PROC DATASETS : Comment modifier vos tables SAS sans réécrire les données
 * Reference : MODIFI9718
 * Source    : https://www.wearecas.eu/de/sampleCode/MODIFI9718
 ******************************************************************************/

/* --- BLOC 1 --- */
options pagesize=40 linesize=80 nodate pageno=1 source;
LIBNAME health 'SAS-library';

/* --- BLOC 2 --- */
proc datasets library=health nolist;

/* --- BLOC 3 --- */
   modify group (label='Test Subjects' read=green sortedby=lname);

/* --- BLOC 4 --- */
      index create vital=(birth salary) / nomiss unique;

/* --- BLOC 5 --- */
      informat birth date7.;
      format birth date7.;
      label salary='current salary excluding bonus';

/* --- BLOC 6 --- */
   modify oxygen;
      rename oxygen=intake;
      label intake='Intake Measurement';
quit;

