if(not withmasterindexfile) { foreach(directory is SAS_CCFPATH or in ccfpath) { foreach(file matching glob pattern) { if(is_a_ccf_file) { extract CCF attributes add to list organized by scope-type } } foreach(scope-type) { select constituent with: VALDATE <= observationdate SUBDATE <= analysisdate EVALDATE >= observationdate highest ISSUE write selected constituet to CIF } } else { // use masterindexfile foreach(scope-type in MIF) { select constituent with: VALDATE <= observationdate SUBDATE <= analysisdate highest ISSUE } }