Importing the schema into IBM InfoSphere Information Server
You must import your XSD file into IBM® InfoSphere® Information Server. Importing the XSD creates the table definitions in IBM InfoSphere DataStage® that outline the column names, data type, length, and other column properties of the data that you want IBM InfoSphere DataStage to process.
Before you begin
- Create your data model.
- Define your attribute collection.
- Write a trigger script in Product Master that uses
the APIs to export the attribute collections created.Sample script:
getContextMethodDefinition = createJavaMethod("com.ibm.pim.context.PIMContextFactory","getContext","java.lang.String","java.lang.String","java.lang.String") ; context = runJavaMethod(null, getContextMethodDefinition, user_name, password, company_name) ; getIISIntegrationDefinition = createJavaMethod("com.ibm.pim.context.Context","getIISIntegration") ; IISIntegration = runJavaMethod(context , getIISIntegrationDefinition) ; getAttributeCollectionMetadataDefinition = createJavaMethod("com.ibm.pim.utils.IISIntegration","getAttributeCollectionMetadata","java.lang.String") ; xsdString = runJavaMethod(IISIntegration , getAttributeCollectionMetadataDefinition, attribute_collection_name) ; xsdString = substring(xsdString,38); out.write(xsdString);
- Export your attribute collection as an XSD file.
About this task
If the spec allows for multiple addresses, and if the source feeds multiple addresses, then you must have a table definition for the addresses. If the source has one address, then the address attributes can be part of the main table definition that is imported from the XSD.