Informix DataStage Developer's Guide - PACS DataStage Developer’s Guide Creating a Job 3-7 Developing a Job 3-9 Adding Stages

  • Published on
    13-Apr-2018

  • View
    217

  • Download
    5

Embed Size (px)

Transcript

  • ii Informix DataStage Developers Guide

    Published by Informix Press Informix Corporation4100 Bohannon DriveMenlo Park, CA 94025-1032

    1999 Informix Corporation. All rights reserved. The following are trademarks of Informix Corporation or its affiliates, one or more of which may be registered in the United States or other jurisdictions:

    Answers OnLineTM; C-ISAM; Client SDKTM; DataBlade; Data DirectorTM; Decision FrontierTM; Dynamic Scalable ArchitectureTM; Dynamic ServerTM; Dynamic ServerTM, Developer EditionTM; Dynamic ServerTM with Advanced Decision Support OptionTM; Dynamic ServerTM with Extended Parallel OptionTM; Dynamic ServerTM with MetaCube; Dynamic ServerTM with Universal Data OptionTM; Dynamic ServerTM with Web Integration OptionTM; Dynamic ServerTM, Workgroup EditionTM; Dynamic Virtual MachineTM; Enterprise Decision ServerTM; FormationTM; Formation ArchitectTM; Formation Flow EngineTM; Frameworks for Business IntelligenceTM; Frameworks TechnologyTM; Gold Mine Data Access; i.ReachTM; i.SellTM; Illustra; Informix; Informix 4GL; Informix COM AdapterTM; Informix Informed DecisionsTM; Informix InquireSM; Informix Internet Foundation.2000TM; InformixLink; Informix Red Brick Decision ServerTM; Informix Session ProxyTM; Informix VistaTM; InfoShelfTM; InterforumTM; I-SpyTM; MediazationTM; MetaCube; NewEraTM; Office ConnectTM; ON-BarTM; OnLine Dynamic ServerTM; OnLine/Secure Dynamic ServerTM; OpenCase; OrcaTM; PaVERTM; Red Brick and Design; Red Brick Data MineTM; Red Brick Mine BuilderTM; Red Brick DecisionscapeTM; Red Brick ReadyTM; Red Brick Systems; Regency Support; Rely on Red BrickSM; RISQL; Solution DesignSM; STARindexTM; STARjoinTM; SuperView; TARGETindexTM; TARGETjoinTM; The Data Warehouse Company; Universal Data Warehouse BlueprintTM; Universal Database ComponentsTM; Universal Web ConnectTM; ViewPoint; VisionaryTM; Web Integration SuiteTM. The Informix logo is registered with the United States Patent and Trademark Office. The DataBlade logo is registered with the United States Patent and Trademark Office.

    GOVERNMENT LICENSE RIGHTS

    Software and documentation acquired by or for the US Government are provided with rights as follows: (1) if for civilian agency use, with rights as restricted by vendors standard license, as prescribed in FAR 12.212; (2) if for Dept. of Defense use, with rights as restricted by vendor s standard license, unless superseded by a negotiated vendor license, as prescribed in DFARS 227.7202. Any whole or partial reproduction of software or documentation marked with this legend must reproduce this legend.

  • Table of Contents iii

    Table of ContentsPrefaceOrganization of This Manual .................................................................................... xiiiDocumentation Conventions ..................................................................................... xvDataStage Documentation ......................................................................................... xvi

    Chapter 1. IntroductionAbout Data Warehousing .......................................................................................... 1-1

    Operational Databases Versus Data Warehouses ............................................ 1-2Constructing the Data Warehouse ..................................................................... 1-2Defining the Data Warehouse ............................................................................ 1-3Data Extraction ..................................................................................................... 1-3Data Aggregation ................................................................................................. 1-3Data Transformation ............................................................................................ 1-3Advantages of Data Warehousing ..................................................................... 1-4

    Main Features in DataStage ....................................................................................... 1-4

    Chapter 2. About DataStageHow DataStage Is Packaged ...................................................................................... 2-1

    Client Components .............................................................................................. 2-1Server Components ............................................................................................. 2-2

    DataStage Projects ....................................................................................................... 2-2DataStage Jobs ............................................................................................................. 2-2DataStage NLS ............................................................................................................. 2-4

    Character Set Maps and Locales ........................................................................ 2-4DataStage Terms and Concepts ................................................................................. 2-5

    Chapter 3. Your First DataStage ProjectSetting Up Your Project .............................................................................................. 3-2

    Starting the DataStage Manager ........................................................................ 3-2Defining Table Definitions .................................................................................. 3-4Assigning Data Elements .................................................................................... 3-6

  • iv DataStage Developers Guide

    Creating a Job ...............................................................................................................3-7Developing a Job ..........................................................................................................3-9

    Adding Stages .......................................................................................................3-9Linking Stages .....................................................................................................3-10

    Editing the Stages ......................................................................................................3-12Editing the UniVerse Stage ...............................................................................3-12Editing the Transformer Stage ..........................................................................3-16Editing the Sequential File Stage ......................................................................3-20

    Compiling a Job .........................................................................................................3-21Running a Job .............................................................................................................3-22Analyzing Your Data Warehouse ............................................................................3-23

    Chapter 4. Setting Up a ProjectAssessing Your Data ...................................................................................................4-1Creating the Data Warehouse ....................................................................................4-2The DataStage Manager .............................................................................................4-2

    Starting the DataStage Manager ........................................................................4-2The DataStage Manager Window ......................................................................4-4Using the DataStage Manager ............................................................................4-7Choosing an Alternative Project ........................................................................4-8Customizing the Tools Menu ..............................................................................4-9Exiting the DataStage Manager ........................................................................4-10

    Table Definitions ........................................................................................................ 4-11Importing a Table Definition ............................................................................ 4-11The Table Definition Dialog Box ......................................................................4-23Manually Entering a Table Definition .............................................................4-28Viewing or Modifying a Table Definition .......................................................4-32Using the Data Browser .....................................................................................4-33

    Stored Procedure Definitions ...................................................................................4-35Importing a Stored Procedure Definition .......................................................4-35The Table Definition Dialog Box for Stored Procedures ...............................4-38Manually Entering a Stored Procedure Definition ........................................4-39Viewing or Modifying a Stored Procedure Definition ..................................4-42

  • Table of Contents v

    Data Elements ............................................................................................................ 4-43Creating Data Elements .................................................................................... 4-44Assigning Data Elements .................................................................................. 4-46Viewing or Editing Data Elements .................................................................. 4-47Built-In Data Elements ...................................................................................... 4-47

    External ActiveX (OLE) Functions ......................................................................... 4-48Importing External ActiveX (OLE) Functions ......