/******************************************************************************
 * Programme : Best Practice SAS : La méthode "Save & Restore" pour modifier vos options sans casser votre environnement
 * Reference : GESTIO71D2
 * Source    : https://www.wearecas.eu/en/sampleCode/GESTIO71D2
 ******************************************************************************/

/* --- BLOC 1 --- */
%let saveOptions = 
       %sysfunc(getoption(CENTER)) %sysfunc(getoption(NUMBER)) %sysfunc(getoption(DATE));
options nocenter nonumber nodate;

/* --- BLOC 2 --- */
/* your code that depends on these options */

/* --- BLOC 3 --- */
options &saveOptions; /* reset options to original values */

