Quick answer
IBM DataStage is an ETL and ELT tool for designing data integration jobs graphically and running them on a parallel processing engine. DataStage interviews cover the job types (parallel, server and sequence jobs), stages and links, the Transformer stage, pipeline and partition parallelism, partitioning methods and the configuration file, Join vs Lookup vs Merge, duplicates and slowly changing dimensions, job sequences, the dsjob command and performance tuning.
DataStage is one of the longest-running enterprise ETL tools, and it is still at the heart of data warehouses in banking, insurance, telecom and retail. That is why DataStage interview questions come up for ETL developer, data engineer and production support roles, often at large IT services companies that maintain these systems for clients.
This guide covers the DataStage interview questions asked most often, from the basics through parallel processing, plus scenario-based DataStage interview questions about duplicates, partitioning, sequences and Unix commands. If you also work with big-data processing, see our Apache Spark tutorial; for the testing side of ETL projects, see our test lead interview questions.
DataStage Interview Questions and Answers for Beginners
1. What is DataStage?
IBM DataStage is a data integration tool used to extract data from source systems, transform it, and load it into targets such as data warehouses, data marts and data lakes. Developers build jobs visually by connecting stages with links, and the jobs run on a parallel engine that splits work across processors and servers. DataStage started at VMark and Ardent, was sold by Ascential Software, and became part of IBM when IBM bought Ascential in 2005. It supports both ETL (transform before loading) and ELT (load, then transform inside the target database).
2. Where does DataStage run today?
Historically DataStage came in Server Edition, Enterprise Edition (with the parallel engine, also called Parallel Extender or PX) and MVS Edition (which generated COBOL for mainframes). Today there are two main ways to use it:
- IBM InfoSphere Information Server (version 11.7.x), the on-premises platform with the classic Windows clients.
- DataStage on IBM Cloud Pak for Data and DataStage as a Service, where you design flows in a web interface and can run them on remote engines close to your data, on premises or in any cloud.
Most interview questions about stages, partitioning and jobs apply to both.
3. What are the main components of DataStage?
In InfoSphere Information Server, the client tools are:
- Designer: build, compile and import or export jobs. Since version 8, it also includes what used to be the separate DataStage Manager tool for managing metadata.
- Director: validate, run, schedule and monitor jobs, and read job logs.
- Administrator: create and configure projects, users and environment variables.
On the server side there are three tiers: the services tier (application server and shared services), the metadata repository tier and the engine tier, which runs the jobs.
4. Where is the DataStage repository stored?
In DataStage 7.x and earlier, each project’s repository lived in the server engine’s built-in UniVerse database. Since version 8, job designs and metadata are stored in the shared metadata repository (XMETA), a database in Db2, Oracle or Microsoft SQL Server. Interviewers ask this to check whether your knowledge is current.
5. What types of jobs are there in DataStage?
- Parallel jobs: run on the parallel engine with partitioning and pipelining; used for most new development.
- Server jobs: the original job type, which run on the server engine, largely one process at a time.
- Sequence jobs (job sequences): control the order in which other jobs run, with conditions, loops and error handling.
- Mainframe jobs: generate COBOL that runs on z/OS.
Containers are sometimes listed as a job type, but they are really reusable groups of stages used inside jobs.
6. What is the difference between a server job and a parallel job?
| Server job | Parallel job | |
|---|---|---|
| Engine | Server engine (DataStage BASIC) | Parallel engine (OSH) |
| Parallelism | Limited; mostly sequential | Pipeline and partition parallelism |
| Scaling | One server | Many CPUs and nodes via the configuration file |
| Lookups | Hashed files | Lookup stage and lookup file sets |
| Typical use | Legacy jobs, small volumes | High-volume processing, new development |
7. What is a stage, and what types of stages are there?
A stage is a step in a job: reading, transforming or writing data. Stages are grouped in the palette into categories such as File, Database, Processing, Restructure, Development and Debug, Real Time, Data Quality and Sequence. They are also described as:
- Passive stages, which read or write data, such as Sequential File, Data Set and database connectors.
- Active stages, which process data and apply business rules, such as Transformer, Aggregator, Join, Lookup and Sort.
8. What are links in DataStage?
Links connect stages and carry rows of data between them, along with the column definitions. A stream link carries the main data flow, a reference link supplies lookup data to a Lookup or Transformer stage, and a reject link collects rows that fail, for example rows that do not match a lookup or cannot be written to a database.
9. What is metadata in DataStage?
Metadata is data about data. In DataStage it mainly means table definitions: the column names, data types, lengths and keys that describe a source or target. You import table definitions from databases or files, save them in the repository, and reuse them across jobs, which keeps column definitions consistent and supports impact analysis when a source changes.
10. What are local and shared containers?
Containers group several stages and links into one reusable unit. A local container exists only inside the job where it was created and mainly tidies up a complex design. A shared container is stored in the repository and can be used in many jobs, so common logic, such as standard address cleansing, is built once and reused.
11. What is the difference between a Data Set and a Sequential File?
A Sequential File is an ordinary text or binary flat file, readable by any tool. A Data Set (.ds) stores data in the parallel engine’s internal format, already partitioned: a small descriptor file points to data files spread across the nodes in the configuration file. Data sets are the fastest way to pass data between parallel jobs because no conversion or repartitioning is needed, but only DataStage can read them directly.
12. What is a hashed file?
A hashed file is a server-job file structure that stores rows by a hashing algorithm on a key column, so any row can be found by key very quickly. It is mainly used as the reference input for lookups in server jobs. In parallel jobs, the equivalent is the Lookup stage with an in-memory reference table, or a lookup file set.
13. What is the Transformer stage?
The Transformer stage is the main place for row-by-row business logic. You write derivations for output columns, constraints that decide which output link each row goes to, and stage variables for intermediate calculations. One output link can be marked as the otherwise link to catch rows that match no other constraint, and a reject link can catch rows that fail with errors. The parallel Transformer also supports loops for producing several output rows from one input row.
14. What are stage variables, and why is their order important?
Stage variables are temporary variables defined in a Transformer. They are evaluated for every row, from top to bottom, before the output derivations, and they keep their value from one row to the next until they are reassigned. That makes them useful for comparing the current row with the previous one, for example to detect a change of key in sorted data. Because of the top-to-bottom order, a variable that holds the previous value must be defined after the variable that uses it.
15. How do you convert columns into rows in DataStage?
Use the Pivot Enterprise stage. A horizontal pivot turns several columns into rows, for example Jan, Feb and Mar sales columns into three rows with month and amount columns. A vertical pivot does the opposite and turns rows into columns. In a Transformer, loop variables can also generate several output rows from one input row.
16. What is the difference between DataStage and Informatica PowerCenter?
Both are mature graphical ETL tools with similar capabilities, so interviewers want practical differences rather than a winner. DataStage builds partition and pipeline parallelism into its engine and controls it through the configuration file. In Informatica, a mapping defines the logic, a session runs it, and partitioning is configured per session. DataStage connects stages with links that carry whole rows, while Informatica connects individual ports between transformations. Both handle slowly changing dimensions and error handling, and the right choice usually depends on what an organization already runs.
DataStage Interview Questions for Experienced Developers
17. What are pipeline parallelism and partition parallelism?
Pipeline parallelism means downstream stages start processing rows as soon as upstream stages produce them, instead of waiting for the whole data set, like an assembly line. Partition parallelism splits the data into partitions and runs the same logic on each partition at the same time, one per node in the configuration file. A parallel job uses both at once, which is how it scales with more CPUs and servers.
18. What partitioning methods does DataStage support?
- Auto: the default; DataStage chooses, usually Round Robin or Same.
- Hash: rows with the same key values go to the same partition; required before key-based operations such as Join, Aggregator and Remove Duplicates.
- Modulus: like Hash, but for a single integer key, using key mod number of partitions.
- Range: assigns key ranges to partitions, using a range map.
- Round Robin: deals rows out evenly; good for balancing load when no key matters.
- Random: spreads rows randomly.
- Same: keeps the partitioning from the previous stage, avoiding a costly repartition.
- Entire: sends a full copy of the data to every partition; typical for small lookup reference data.
- DB2: matches the partitioning of a partitioned Db2 table.

19. What are collecting methods?
Collecting is the opposite of partitioning: it brings partitions back together, for example before writing to a single sequential file. The methods are Auto, Round Robin, Ordered (all of partition 0, then partition 1 and so on) and Sort Merge, which keeps the data in sorted order across partitions based on a key.
20. What is the configuration file in DataStage?
The parallel configuration file, named by the APT_CONFIG_FILE environment variable, tells the parallel engine which nodes (logical processing units) exist, which server each one runs on, and where its disk and scratch space are. The number of nodes sets the default degree of parallelism, so the same job can run on 2 nodes in development and 8 in production without changing the design.
{
node "node1"
{
fastname "etlserver01"
pools ""
resource disk "/data/ds/node1" {pools ""}
resource scratchdisk "/scratch/ds/node1" {pools ""}
}
node "node2"
{
fastname "etlserver01"
pools ""
resource disk "/data/ds/node2" {pools ""}
resource scratchdisk "/scratch/ds/node2" {pools ""}
}
}
fastname is the server’s network name. Disk is where data sets are stored, and scratch disk is used for sorts and buffering, so it should be on fast local storage.
21. What is the difference between the Join, Lookup and Merge stages?
| Join | Lookup | Merge | |
|---|---|---|---|
| Inputs | Two or more, all equal | One primary stream plus reference links | One master plus one or more update links |
| Sorting needed | Yes, inputs sorted and partitioned on the key | No | Yes, all inputs sorted on the key |
| Memory | Low; streams the data | Reference data held in memory | Low; streams the data |
| Join types | Inner, left, right, full outer | Lookup with failure options | Master keeps or drops unmatched rows |
| Reject links | No | One, for lookup failures | One per update link |
| Best for | Two large inputs | Large stream, small reference data | Applying updates to a master data set |
22. What types of lookups are there, and what happens when a lookup fails?
A normal lookup loads the reference data into memory, which is fast but limited by memory size. A sparse lookup, available with database reference links, sends a query to the database for each input row; it suits a small number of input rows against a very large table. A range lookup matches a value that falls between two reference columns, such as a date between start and end dates. For rows with no match, the Lookup Failure option decides what happens: Continue (pass the row with null or default values), Drop, Fail (abort the job) or Reject (send the row to the reject link).
23. How do you remove duplicate rows in DataStage?
- Remove Duplicates stage: hash partition and sort on the key, then keep the first or last row of each key group.
- Sort stage: set Allow Duplicates to False to keep one row per key.
- Transformer with stage variables: on sorted data, compare each key with the previous row’s key and pass only the first row.
- Aggregator: group by the key columns when you also need totals.
Whatever the method, the data must be partitioned on the key, usually with Hash, so that all duplicates of a key end up in the same partition.
24. What does the Aggregator stage do?
The Aggregator stage groups rows by key columns and calculates values such as count, sum, minimum, maximum and average for each group. It has two methods: Hash, which builds the groups in memory and suits a small number of distinct groups, and Sort, which needs input sorted on the grouping keys and handles any number of groups with little memory.
25. How do you implement slowly changing dimensions in DataStage?
A slowly changing dimension (SCD) tracks how dimension attributes, such as a customer’s address, change over time. Type 1 overwrites the old value; Type 2 keeps history by expiring the current row and inserting a new row with a new surrogate key, effective dates and a current flag. DataStage has a dedicated Slowly Changing Dimension stage that compares incoming rows with the dimension, generates surrogate keys and outputs the inserts and updates. Many teams build the same logic with the Change Capture stage and a Transformer.
26. What are the Change Capture and Change Apply stages?
Change Capture compares a “before” data set with an “after” data set on key columns and outputs each row with a change code: copy (unchanged), insert, delete or edit. Change Apply does the reverse: it takes the before data set and a set of change records and produces the after data set. Together they are used for incremental loads and change data capture.
27. How do you generate surrogate keys in DataStage?
Use the Surrogate Key Generator stage, which creates unique integer keys and keeps track of the last value used in a state file or a database sequence, so keys stay unique across job runs. In a Transformer you can also build keys from the partition number and row counter system variables. A surrogate key replaces the natural business key in the dimension, which keeps joins fast and lets one business entity have several historical rows in a Type 2 dimension.
28. What is a job sequence, and which activities and triggers does it use?
A job sequence controls the order and conditions in which jobs run. Common activities are Job Activity (run a job), Sequencer (wait for all or any inputs), Nested Condition, Wait For File (wait until a file appears or disappears), Execute Command, Routine, Notification (send an email), User Variables, Start Loop and End Loop, Terminator and Exception Handler. A sequence can contain only one Exception Handler, which runs if any activity fails without a failure trigger of its own.
Triggers on the links decide which path runs next: OK (conditional), Failed, Warning, Custom (your own expression), User status, Unconditional and Otherwise. Turning on checkpoint restart lets a failed sequence restart from the failed activity instead of from the beginning.

29. How do you run a DataStage job from the command line?
Use the dsjob command on the engine server:
dsjob -run -jobstatus -param LoadDate=2026-10-15 MyProject LoadCustomers
-jobstatus makes the command wait and return the job’s finishing status as its exit code, which schedulers such as Control-M, Autosys or cron rely on. Other useful options are -logsum (job log summary), -jobinfo (status and timing), -stop (stop a running job), -reset (reset an aborted job) and -report.

30. How do you import and export DataStage jobs?
In the Designer, you export jobs, table definitions and other objects to a .dsx or .xml file and import them into another project. On Information Server you can also use the istool command line to export and import assets as .isx archives, which is the usual way to script deployments between development, test and production. Older releases provided dsexport and dsimport command-line tools on the client.
31. What are job parameters and parameter sets?
Job parameters let one job run with different values, such as file paths, database names or dates, without editing the design; you reference them as #ParamName#. A parameter set groups related parameters, such as all connection details for one database, so many jobs share one definition. Value files inside a parameter set hold different values for each environment. Project-level environment variables can also be exposed as job parameters.
32. What is the difference between compiling, validating and running a job?
Compiling checks the design, such as required properties and Transformer expressions, and generates the executable job (OSH and, for Transformers, C++ code). Validating, done from the Director, runs the job in check-only mode: it connects to the sources and targets, prepares SQL statements and opens files, but processes no data. Running executes the job and moves the data.
Scenario-Based DataStage Interview Questions
33. How do you capture duplicate records instead of removing them?
Hash partition and sort on the key in a Sort stage, and set Create Key Change Column to True. The stage adds a column that is 1 for the first row of each key and 0 for every repeat. A Filter or Transformer then sends rows with 1 to the main output and rows with 0 to a duplicates file or table. The same result can be achieved with stage variables comparing each key with the previous row.
34. How do you delete a Data Set in Unix?
Use orchadmin rm customers.ds (or the Data Set Management tool in the Designer). Do not delete the .ds file with rm: it is only the descriptor, and the actual data files on each node would be left behind, wasting disk space. orchadmin describe shows a data set’s structure and partitions, and orchadmin dump prints its rows.
35. What is the preserve partitioning flag?
Each stage output can set, clear or propagate a preserve partitioning flag. When it is set, the next stage is asked not to repartition the data, which saves the cost of reshuffling rows that are already correctly partitioned and sorted. If a later stage must repartition anyway, the engine shows a warning in the log. Clearing the flag allows repartitioning without warnings.
36. What is the default padding character in DataStage?
When a fixed-length string is longer than the data put into it, the parallel engine fills the rest with the padding character set by APT_STRING_PADCHAR, which defaults to 0x0 (the null byte). Many projects change it to a space (0x20), because null-padded strings can cause unexpected mismatches in comparisons and in files read by other tools.
37. How do you send an email when a job aborts?
The usual way is a Notification activity in the job sequence, connected to the Job Activity with a Failed trigger, so it sends an email with the job name and status when the job aborts. Alternatives are calling a mail command such as mailx from an Execute Command activity or an after-job subroutine, or letting the enterprise scheduler alert on the non-zero exit code returned by dsjob -jobstatus.
38. How do you stop a running or hung DataStage job?
First try a normal stop from the Director or with dsjob -stop project job. If the job does not respond, find its processes on the engine server (for example with ps -ef | grep and the job name) and stop them with kill, then use the Director’s Cleanup Resources option to release locks and reset the job with dsjob -reset before running it again. Killing processes should be a last resort, ideally done by an administrator.
Advanced DataStage Interview Questions
39. What are the Iconv and Oconv functions?
Iconv (input conversion) turns an external value, such as a date string, into DataStage’s internal format, and Oconv (output conversion) turns an internal value back into a readable format. They come from DataStage BASIC and are used in server jobs and routines, often together to reformat dates:
Oconv(Iconv("2026-10-15", "D-YMD[4,2,2]"), "D/DMY[2,2,4]")
* returns 15/10/2026
In parallel jobs, the Transformer uses functions such as StringToDate, DateToString and StringToTimestamp instead.
40. What is NLS in DataStage?
NLS stands for National Language Support. When it is enabled, DataStage handles character sets beyond ASCII, such as UTF-8 and multi-byte languages, through maps, which convert between character sets, and locales, which control date and time formats, number formats and sort order. You can set default maps and locales for a project and override them per job or stage.
41. How do you tune the performance of DataStage jobs?
- Choose the partitioning carefully, and avoid unnecessary repartitioning and sorting between stages.
- Use Join instead of Lookup when the reference data is too large for memory.
- Filter rows and drop unneeded columns as early as possible.
- Push simple work, such as filters and joins, down to the database when it can do them faster (the ELT approach).
- Use Data Sets, not sequential files, to pass data between parallel jobs.
- Use bulk load options in database connectors for large loads.
- Put scratch disk on fast local storage, and size the number of nodes to the available CPUs.
- Check the job’s performance and resource data in the Director or Operations Console to find the slowest stage.
42. How do you handle errors and rejected rows?
Add reject links to stages that support them, such as Sequential File, Lookup, Transformer and database connectors, and write the rejected rows with an error code and message to a reject file or table. Use Transformer constraints and an otherwise link to route rows that fail business validation. At the sequence level, use Failed triggers, an Exception Handler and Notification activities, and set a warning limit so a job aborts when too many problems occur instead of finishing with bad data.
43. What are the types of fact tables?
- Additive facts can be summed across all dimensions, such as sales amount or quantity.
- Semi-additive facts can be summed across some dimensions but not time, such as an account balance or stock level.
- Non-additive facts cannot be summed at all, such as percentages, ratios and unit prices.
- Factless fact tables have only foreign keys and no measures, and record that an event happened, such as a student attending a class.
Fact tables are also described by grain: transaction, periodic snapshot and accumulating snapshot.
44. What are the common types of dimensions?
- Conformed dimension: a dimension with the same meaning and keys across several fact tables or data marts, such as a shared Date or Customer dimension.
- Junk dimension: combines low-cardinality flags and indicators into one small table instead of storing them in the fact table.
- Degenerate dimension: a dimension value, such as an invoice or order number, stored directly in the fact table with no dimension table of its own.
- Role-playing dimension: one dimension used for several purposes, such as a Date dimension used as order date and ship date.
- Slowly changing dimension: a dimension whose attributes change over time and are handled as Type 1, Type 2 or other types.
Conclusion
Most DataStage interviews come back to the same core: how the parallel engine partitions and pipelines data, how to pick between Join, Lookup and Merge, how to handle duplicates and slowly changing dimensions, and how sequences, dsjob and Unix commands keep jobs running in production. If you can explain those with examples from your own projects, you will be well prepared for both development and production support roles. If you were asked a DataStage question recently that is not here, share it in the comments and we can work through it together.
Sources and further reading
- IBM DataStage: product overview, ETL and ELT, parallel engine and remote engines
- IBM InfoSphere Information Server 11.7 documentation: stages, partitioning, configuration files and dsjob
- DataStage on Cloud Pak for Data as a Service: the cloud version of DataStage
- Kimball Group dimensional modeling techniques: fact tables, dimensions and slowly changing dimensions

Leave a Reply