Scénario de test & Cas d'usage
Configuración de las propiedades de la sesión.
Descubrir todas las acciones de sessionPropCreación de una biblioteca 'Study2010' que tiene Género pero NO tiene Raza, para provocar la ausencia del formato solicitado.
| 1 | PROC FORMAT; |
| 2 | value $gender 'M'='Male' 'F'='Female'; |
| 3 | /* Nota: No definimos $race aqui deliberadamente */ |
| 4 | RUN; |
| 5 | |
| 6 | PROC FORMAT lib=work cntlout=cntl_s2010; select $gender; RUN; |
| 7 | DATA casuser.cntl_s2010; SET cntl_s2010; RUN; |
| 8 | |
| 9 | PROC CAS; |
| 10 | sessionprop.addFmtLib / fmtLibName='study_2010' TABLE={caslib='casuser', name='cntl_s2010'} replace=true; |
| 11 | RUN; |
| 12 | QUIT; |
| 1 | PROC CAS; |
| 2 | sessionProp.combineFmtLibs / |
| 3 | fmtLibsIn={'study_2010'} |
| 4 | fmtLibOut='std_clinical' |
| 5 | formatNames={'$gender', '$race'} |
| 6 | ignoreNameNotFound=true; |
| 7 | RUN; |
| 8 | QUIT; |
| 1 | PROC CAS; |
| 2 | sessionProp.listFmtLibs / fmtLibNames={'std_clinical'} showFmtNames=true; |
| 3 | RUN; |
| 4 | QUIT; |
La acción debe completarse con éxito (RC=0) a pesar de que '$race' no existe en 'study_2010'. La biblioteca 'std_clinical' debe crearse conteniendo únicamente '$gender'. Si 'ignoreNameNotFound' fuera false, la acción fallaría.