Mainframe Job Tutorial

Embed Size (px)

Text of Mainframe Job Tutorial

Ascential DataStage Enterprise MVS Edition

Mainframe Job TutorialVersion 7.5.1

Part No. 00D-028DS751 December 2004

This document, and the software described or referenced in it, are confidential and proprietary to Ascential Software Corporation ("Ascential"). They are provided under, and are subject to, the terms and conditions of a license agreement between Ascential and the licensee, and may not be transferred, disclosed, or otherwise provided to third parties, unless otherwise permitted by that agreement. No portion of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Ascential. The specifications and other information contained in this document for some purposes may not be complete, current, or correct, and are subject to change without notice. NO REPRESENTATION OR OTHER AFFIRMATION OF FACT CONTAINED IN THIS DOCUMENT, INCLUDING WITHOUT LIMITATION STATEMENTS REGARDING CAPACITY, PERFORMANCE, OR SUITABILITY FOR USE OF PRODUCTS OR SOFTWARE DESCRIBED HEREIN, SHALL BE DEEMED TO BE A WARRANTY BY ASCENTIAL FOR ANY PURPOSE OR GIVE RISE TO ANY LIABILITY OF ASCENTIAL WHATSOEVER. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ASCENTIAL BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. If you are acquiring this software on behalf of the U.S. government, the Government shall have only "Restricted Rights" in the software and related documentation as defined in the Federal Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you are acquiring the software on behalf of the Department of Defense, the software shall be classified as "Commercial Computer Software" and the Government shall have only "Restricted Rights" as defined in Clause 252.227-7013 (c) (1) of DFARs. 2000-2004 Ascential Software Corporation. All rights reserved. DataStage, EasyLogic, EasyPath, Enterprise Data Quality Management, Iterations, Matchware, Mercator, MetaBroker, Application Integration, Simplified, Ascential, Ascential AuditStage, Ascential DataStage, Ascential ProfileStage, Ascential QualityStage, Ascential Enterprise Integration Suite, Ascential Real-time Integration Services, Ascential MetaStage, and Ascential RTI are trademarks of Ascential Software Corporation or its affiliates and may be registered in the United States or other jurisdictions. The software delivered to Licensee may contain third-party software code. See Legal Notices (LegalNotices.pdf) for more information.

How to Use this Guide

This manual describes the features of the Ascential DataStage Enterprise MVS Edition tool set and provides demonstrations of simple data extractions and transformations in a mainframe data warehouse environment. It is written for system administrators and application developers who want to learn about Ascential DataStage Enterprise MVS Edition and examine some typical usage examples. If you are unfamiliar with data warehousing concepts, please read Chapter 1 and Chapter 2 of Ascential DataStage Designer Guide for an overview.Note This tutorial demonstrates how to create and run mainframe jobs, that is, jobs that run on mainframe computers. You can also create jobs that run on a DataStage server; these include server jobs and parallel jobs. For more information about the different types of DataStage jobs, refer to Ascential DataStage Server Job Developers Guide, Ascential DataStage Mainframe Job Developers Guide, and Ascential DataStage Parallel Job Developers Guide.

This manual is organized by task. It begins with introductory information and simple examples and progresses to more complex tasks. It is not intended to replace formal Ascential DataStage training, but rather to introduce you to the product and show you some of what it can do. The tutorial CD contains the sample table definitions used in this manual.

Welcome to the Mainframe Job TutorialThis tutorial takes you through some simple examples of extractions and transformations in a mainframe data warehouse environment. This introduces you to the functionality of DataStage mainframe jobs and shows you how easy common data warehousing tasks can be, with the right tools. As you begin, you may find it helpful to start an Adobe Acrobat Reader session in another window; you can then refer to the Ascential

Mainframe Job Tutorial


Before You Begin

How to Use this Guide

DataStage documentation to see complete coverage of some of the topics presented. For your convenience, we reference specific sections in the Ascential DataStage documentation as we progress. This document takes you through a demonstration of some of the features of our tool. We cover the basics of: Reading data from various mainframe sources Designing job stages to model the flow of data into the warehouse Defining constraints and column derivations Merging, aggregating, and sorting data Defining business rules Calling external routines Generating code and uploading jobs to a mainframe We assume that you are familiar with fundamental database concepts and terminology because you are working with our product. We also assume that you have a basic understanding of mainframe computers and the COBOL language since you are using Ascential DataStage Enterprise MVS Edition. We cover a lot of material throughout the demonstration process, and therefore we will not waste your time with rudimentary explanations of concepts. If your database and mainframe skills are advanced, some of what is covered may seem like review. However, if you are new to databases or the mainframe environment, you may want to consult an experienced user for assistance with some of the exercises.

Before You BeginAscential DataStage Enterprise MVS Edition 7.5 must be installed. We recommend that you install the DataStage server and client programs on the same machine to keep the configuration as simple as possible, but this is not essential. As a mainframe computer is not always accessible, this tutorial is written with the assumption that you are not connected to one. Not having a mainframe will not hinder you in the use of this tutorial. This tutorial will take you through the steps of generating code and uploading a job, simulating what you would do on a mainframe, but will not actually do it without the connection to a mainframe.


Mainframe Job Tutorial

How to Use this Guide

How This Book is Organized

How This Book is OrganizedThe following table lists topics that may be of interest to you and it provides links to these topics:This chapter Covers these topicsChapter 1 Introduces the components of the Ascential DataStage tool set and describes the unique characteristics of mainframe jobs, including usage concepts and terminology. Introduces the DataStage Administrator and explains how to set mainframe project defaults. Describes how to import mainframe table definitions via the DataStage Manager. Covers the basics of designing a mainframe job in the DataStage Designer. Describes how to define constraints and column derivations using the mainframe Expression Editor. Explains the details of working with simple flat file data. Explains the details of working with complex flat file data. Explains the details of working with IMS data. Explains how to work with relational data. Describes how to work with external sources and targets. Describes how to merge data using lookups and joins. Discusses how to aggregate and sort data. Explains how to perform complex transformations using SQL business rule logic. Explains how to call external COBOL subroutines in a DataStage mainframe job. Covers the process of generating code and uploading jobs to the mainframe. Summarizes the features covered and recaps the exercises. Contains table and column definitions for the mainframe data sources used in the tutorial.

Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Appendix A

Mainframe Job Tutorial


Related Documentation

How to Use this Guide

Related DocumentationTo learn more about documentation from other Ascential products as they relate to Ascential DataStage Enterprise MVS Edition, refer to the following table.

Ascential Software DocumentationProductAscential DataStage

GuideAscential DataStage Administrator Guide Ascential DataStage Designer Guide

DescriptionDescribes Ascential DataStage setup, routine housekeeping, and administration Describes the DataStage Designer, and gives a general description of how to create, design, and develop a DataStage application Describes the DataStage Manager and explains how to use and maintain the DataStage Repository Describes the tools that are used in building a server job, and supplies programmers reference information Describes the tools that are used in building a parallel job, and supplies programmers reference information Gives more specialized information about parallel job design

Ascential DataStage Manager Guide Ascential DataStage Server Job Developers Guide Ascential DataStage Parallel Job Developers Guide Ascential DataStage Parallel Job Advanced Developers Guide

Ascential DataStage Mainframe Job Developers Guide

Describes the tools that are used in building a mainframe job, and supp