Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →Extract, Transform, and Load SAS xpt Data in Informatica PowerCenter
Create a simple Workflow for SAS xpt data in Informatica PowerCenter.
Informatica provides a powerful, elegant means of transporting and transforming your data. By utilizing the CData ODBC Driver for SAS xpt, you are gaining access to a driver based on industry-proven standards that integrates seamlessly with Informatica's powerful data transportation and manipulation features. This tutorial shows how to create a simple Workflow in Informatica PowerCenter to extract SAS xpt data and load it into a flat file.
Add SAS xpt as an ODBC Data Source
If you have not already, install the driver on the PowerCenter server and client machines. On both machines, specify the connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
Connecting to Local SASXpt Files
You can connect to local SASXpt file by setting the URI to a folder containing SASXpt files.
Connecting to S3 data source
You can connect to Amazon S3 source to read SASXpt files. Set the following properties to connect:
- URI: Set this to the folder within your bucket that you would like to connect to.
- AWSAccessKey: Set this to your AWS account access key.
- AWSSecretKey: Set this to your AWS account secret key.
- TemporaryLocalFolder: Set this to the path, or URI, to the folder that is used to temporarily download SASXpt file(s).
Connecting to Azure Data Lake Storage Gen2
You can connect to ADLS Gen2 to read SASXpt files. Set the following properties to connect:
- URI: Set this to the name of the file system and the name of the folder which contacts your SASXpt files.
- AzureAccount: Set this to the name of the Azure Data Lake storage account.
- AzureAccessKey: Set this to our Azure DataLakeStore Gen 2 storage account access key.
- TemporaryLocalFolder: Set this to the path, or URI, to the folder that is used to temporarily download SASXpt file(s).
Create an ETL Workflow in PowerCenter
Follow the steps below to create a workflow in PowerCenter to pull SAS xpt data and push it into a flat file.
Create a Source Using the ODBC Driver
- In the powrmart.ini file found in %INFA_HOME%\clients\PowerCenterClient\client\bin, add the following line to the ODBCDLL section:
CData=PMODBC.DLL
- In PowerCenter Workflow Manager, add a new ODBC relational connection, set the user name and password properties to the user for the machine on which the ODBC Driver is installed, and set the connect string to the System DSN for the driver (CData SASXpt Sys).
- In PowerCenter Designer, connect to your repository and open your folder.
- Select the Source Analyzer, click the sources menu, and select Import from Database...
- In the drop-down menu for ODBC data source, select the DSN you previously configured (CData SASXpt Sys).
- Click connect and select the tables and views to include.
- Click OK.
Create a Flat File Target Based on the Source
- Select the Targets Analyzer and drag and drop the previously created source onto the workspace. Using the existing source copies the columns into the target.
- Right-click the new target, click edit, and change the database type to flat file.
Create a Mapping to Between SAS xpt Data and a Flat File
- Click on the Mapping Designer.
- Drag the source and target to the workspace (name the new mapping, if prompted).
- Right-click on the workspace and select Autolink by Name.
- Drag the columns from the source qualifier to the target definition.
- Save the folder (Ctrl + S).
Create Workflow Based on the Mapping
With the source, target, and mapping created and saved, you are now ready to create the workflow.
- Right-click the mapping and select generate workflow to open the Workflow Generation wizard.
- Create a workflow with a non-reusable session.
- Ensure that you have properly configured the connection object (to the relational connection we created earlier) and set the prefixes.
- Configure the Connection as needed.
- Review the Workflow and click Finish.
With a workflow created, you can open the PowerCenter Workflow Manager to access and start the workflow, quickly transferring SAS xpt data into a flat file. With the ODBC Driver for SAS xpt, you can configure sources and targets in PowerCenter to integrate SAS xpt data into any of the elegant and powerful features in Informatica PowerCenter.