/******************************************************************************
 * Programme : Secure, Sort, and Index: A Comprehensive Guide to Managing SAS Data Sets
 * Reference : MODIFYA607
 * Source    : https://www.wearecas.eu/en/sampleCode/MODIFYA607
 ******************************************************************************/

/* --- 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;

