sessionProp combineFmtLibs

Automated Migration with Missing Formats

Scénario de test & Cas d'usage

Business Context

An automated migration script is set up to build a specific format library for a legacy system interface. The script requests a standard list of formats to be merged from the 'LegacySource' library. However, due to data quality issues, some requested formats (e.g., '$OldGeo') may no longer exist in the source. The business requirement is that the process must NOT fail; it should migrate whatever is available so the interface can start partially.
About the Set : sessionProp

Configuration of session properties.

Discover all actions of sessionProp
Data Preparation

Create a source library that deliberately misses one of the formats that will be requested.

Copied!
1PROC FORMAT casfmtlib='LegacySource';
2 value $ExistingFmt '1'='One' '2'='Two';
3 /* Note: $OldGeo is deliberately NOT created here */
4RUN;

Étapes de réalisation

1
Attempt to merge requesting a non-existent format with ignoreNameNotFound=TRUE.
Copied!
1PROC CAS;
2 sessionProp.combineFmtLibs /
3 fmtLibsIn={"LegacySource"},
4 fmtLibOut="InterfaceLib",
5 formatNames={"$ExistingFmt", "$OldGeo"},
6 ignoreNameNotFound=TRUE;
7RUN;
2
Verify that the process did not fail despite '$OldGeo' being missing.
Copied!
1PROC CAS;
2 /* Check existence of the output library */
3 sessionProp.listFmtLibs fmtLibName="InterfaceLib";
4RUN;

Expected Result


The action returns a success status (or warning, but not a fatal error). The 'InterfaceLib' is created containing '$ExistingFmt'. The missing '$OldGeo' is ignored as requested, allowing the pipeline to continue.