Mainframe Datastage

  • View
    93

  • Download
    6

Embed Size (px)

DESCRIPTION

Datastage

Transcript

  • Asc

    DataS

    Version 6.0September 200Part No. 00D-02tage XE/390 Job Developers Guideential DataStage05DS60

  • Published by Ascential Software Corporation

    2001-2002 Ascential Software Corporation. All rights reserved.

    Ascential, DataStage, and MetaStage are trademarks of Ascential Software Corporation or its affiliates and may be registered in other jurisdictions.

    Documentatio

    Software and d(1) if for civilia(2) if for Dept. negotiated vendocumentationn Team: Debbie Benoit

    GOVERNMENT LICENSE RIGHTS

    ocumentation acquired by or for the US Government are provided with rights as follows: n agency use, with rights as restricted by vendors standard license, as prescribed in FAR 12.212; of Defense use, with rights as restricted by vendors standard license, unless superseded by a dor license, as prescribed in DFARS 227.7202. Any whole or partial reproduction of software or marked with this legend must reproduce this legend.

  • Table of Co

    Table of ContentsPrefaceWhats NeOrganizatDocumentUser InterDataStage

    Chapter Developin

    ImporCreatiDesignEditin

    After DeveGenerUploa

    Programm

    ChapterImportingImportingImportingViewing a

    Chapter Using a Co

    SpecifPre-SoSpecif

    Defining CSelectintents i

    w in Release 6.0 ......................................................................................... i-ixion of This Manual ......................................................................................... xation Conventions ...................................................................................... xiiface Conventions ........................................................................................ xiii Documentation .......................................................................................... xiv

    1. Introductiong Mainframe Jobs ...................................................................................... 1-1ting Meta Data ........................................................................................... 1-2ng a Mainframe Job ................................................................................... 1-2ing Job Stages ........................................................................................... 1-4

    g Job Properties ......................................................................................... 1-8lopment ..................................................................................................... 1-8

    ating Code .................................................................................................. 1-8ding Jobs ..................................................................................................... 1-9ing Resources ............................................................................................ 1-9

    2. Importing Meta Data for Mainframe Jobs COBOL File Definitions .......................................................................... 2-1 DCLGen Files ............................................................................................ 2-5 Teradata Tables ......................................................................................... 2-9nd Editing Imported Table Definitions ................................................ 2-10

    3. Complex Flat File Stagesmplex Flat File Stage ............................................................................... 3-1

    ying Stage Column Definitions ............................................................... 3-4rting Data ................................................................................................... 3-7ying Sort File Parameters ....................................................................... 3-10omplex Flat File Output Data .............................................................. 3-12ng Normalized Arrays ........................................................................... 3-15

  • ii

    Chapter 4. Multi-Format Flat File StagesUsing a Multi-Format Flat File Stage ........................................................................4-1

    Specifying Stage Record Definitions .................................................................4-4Specifying Record ID Constraints ......................................................................4-8

    Defining MSelecti

    Chapter Using a Fi

    SpecifPre-SoSpecif

    Defining FDefining F

    Chapter Using a D

    SpecifSpecifSpecif

    Defining DDefining D

    Chapter Using a D

    SpecifSettingSpecif

    Defining DDefining D

    Chapter Using a ReDefining R

    Updat DataStage XE/390 Job Developers Guide

    ulti-Format Flat File Output Data .........................................................4-9ng Normalized Arrays ...........................................................................4-13

    5. Fixed-Width Flat File Stagesxed-Width Flat File Stage .........................................................................5-1ying Stage Column Definitions ...............................................................5-4rting Data ...................................................................................................5-6ying Target File Parameters ......................................................................5-9ixed-Width Flat File Input Data ............................................................ 5-11ixed-Width Flat File Output Data .........................................................5-13

    6. Delimited Flat File Stageselimited Flat File Stage ..............................................................................6-1ying Stage Column Definitions ...............................................................6-4ying Delimiter Information ......................................................................6-5ying Target File Parameters ......................................................................6-7elimited Flat File Input Data ..................................................................6-9elimited Flat File Output Data ............................................................. 6-11

    7. DB2 Load Ready Flat File StagesB2 Load Ready Flat File Stage ..................................................................7-1ying Stage Column Definitions ...............................................................7-3 DB2 Bulk Loader Parameters ................................................................7-5

    ying Load Data File Parameters ..............................................................7-6B2 Load Ready Flat File Input Data ......................................................7-8B2 Load Ready Flat File Output Data .................................................7-10

    8. Relational Stageslational Stage .............................................................................................8-1elational Input Data .................................................................................8-3ing Input Columns ....................................................................................8-5

  • Table of Co

    Using a WHERE Clause ...................................................................................... 8-7Defining Relational Output Data .............................................................................. 8-9

    Defining Computed Columns .......................................................................... 8-13Modifying the SQL Statement ......................................................................... 8-15

    Chapter Using a Te

    Defining TUpdatUsing

    Defining TDefiniModif

    Chapter Using a Te

    SpecifSpecif

    Defining TDefiniModif

    Chapter Using a Te

    SpecifUpdatDefiniSpecifSpecifSpecif

    Defining T

    Chapter Working w

    CreatiViewinntents iii

    9. Teradata Relational Stagesradata Relational Stage ............................................................................ 9-1

    eradata Relational Input Data ................................................................. 9-3ing Input Columns ................................................................................... 9-5 a WHERE Clause ...................................................................................... 9-7eradata Relational Output Data ............................................................. 9-9ng Computed Columns .......................................................................... 9-14ying the SQL Statement ......................................................................... 9-15

    10. Teradata Export Stagesradata Export Stage ................................................................................ 10-1ying Teradata FastExport Parameters .................................................. 10-3ying File Options ..................................................................................... 10-4eradata Export Output Data ................................................................. 10-6ng Computed Columns ........................................................................ 10-11ying the SQL Statement ....................................................................... 10-12

    11. Teradata Load Stagesradata Load Stage ................................................................................... 11-1ying Stage Column Definitions ............................................................. 11-4ing Input Columns ................................................................................. 11-4ng a WHERE Clause ............................................................................... 11-6ying Teradata Load Utility Parameters ................................................ 11-8ying Error Handling Options .............