Before you start
This tutorial gives you an introduction to creating a basic DataStage operator. You'll start by learning how to write a basic operator, and then walk step-by-step through the process of loading the operator into the DataStage Designer.
In this tutorial you learn:
- How to write a simple DataStage operator
- How to set up the development environment to compile and run a DataStage operator
- The basics of the Orchestrate Shell (OSH) scripting language for DataStage jobs
- How to load your operator into the DataStage Designer so you can use it on any job you create
This tutorial is written for Windows programmers whose skills and experience are at a intermediate level. You should have a solid understanding of IBM WebSphere DataStage and a working knowledge of the C++ language.
To run the examples in this tutorial, you need a Windows computer with the following:
- Microsoft Visual Studio .NET 2003
- IBM WebSphere DataStage 8.0
- MKS Toolkit
Before you start this tutorial, refer to the Download section and download the source code for this tutorial.
Extract this example to a simple location, as you will be accessing it frequently. In this tutorial, the directory e:/osh/ has been used, so change any reference to this location to
the location of your source code directory.
Inside the download code.zip archive, there are seven files:
- /setup.bat -- Batch script to setup the environment
- /myhelloworld.osh -- OSH script used to run the operator
- /make.bat -- Batch script to compile and link the operator
- /operator.apt -- Operator configuration file
- /src/myhelloworld.c -- The source code for the operator
- /input/mhw.txt -- The input file used for running the operator
- /output/mhw.txt -- The output file used for running the operator

