Professional Documents
Culture Documents
Dynamic DB2 Library Name
Dynamic DB2 Library Name
WhenthedatasourceconnectioninCognosConnectionisconfiguredfordevelopmentdata,asitwouldbeintheCognosDEV environment,thequerywillreturn: CURRENT_ENVIRONMENT DEVSCHEMA WhenthedatasourceconnectioninCognosConnectionisconfiguredforproductiondata,asitwouldbeintheCognosPROD environment,thequerywillreturn: CURRENT_ENVIRONMENT PRODSCHEMA Step2CreateParameterMap CreateaparametermapandselecttheoptionintheParameterMapWizardtobasethe parametermaponexistingqueryitems.SpecifythequerysubjectcreatedinStep1and specifythekeyastheCURRENT_ENVIRONMENTcolumnandsetthevalueasthe LIBRARY_NAMEcolumn. Step3DefineMacroforSchemaProperty ChangetheSchemapropertyforthedatasourceinCognosconnectiontoamacrothat referencestheparametermap.
#$[Dynamic Library]{'CURRENT_ENVIRONMENT'}#