DataStage Interview Questions From Beginners to Advanced

DataStage is an ETL tool that is used in graphical notation to build solutions to data integration. The available versions of DataStage are SE (Server Edition), EE (Enterprise Edition), MVS (Multiple Virtual Storage) edition. The job role in DataStage comprises the knowledge of data warehouse, ETL, data storage, configuration, design, various stages, and modules in data stages. DataStage is used to integrate various systems (multiple systems) and processes high volumes of data. The popularity of DataStage is because of the user-friendly graphical front-end to design jobs.

The following write-up is written to make you aware of DataStage interview questions scenario-based answers. It will be helpful in cracking foundation interview levels of DataStage related jobs. Nonetheless, DataStage real-time interview questions will help to get shortlisted for a job position.

Let’s begin IBM DataStage Interview Questions And Answers.

Q.1) What is DataStage?

DataStage is a tool developed by IBM that is used to design, develop, and execute different applications to fill the gap of multiple tables in data warehouses or data marts. It is software for windows servers that helps in data extraction from databases and modifies them into data warehouses. DataStage is an important part of IBM WebSphere Data Integration Suite.

Q.2) What are the types of stages?

  • General Objects
  • Stages of Data Quality
  • Development and Debug Stages
  • Database connectors
  • Restructure stages
  • Real-time stages
  • Debug and Development stages
  • Sequence activities

Q.3) What are the components of DataStage?

DataStage has the number of client and server components. It has four main components, namely:

  • Datastage Designer
  • Datastage Director
  • Datastage Manager
  • Datastage Administrator

Q.4) Explain a few features of DataStage.?

  • Extracts data from any number or types of database
  • Handles all the metadata definitions required to define your data warehouse.
  • You can view and modify the table definitions at any point during the design of your application.
  • Aggregates data.|
  • You can modify SQL SELECT statements used to extract data.
  • DataStage transforms data easily. It has a set of predefined transforms and functions.
  • You can use it to convert your data and you can easily extend the functionality by defining your own transforms to use.
  • Loads the data warehouse.

Q.5) What are the jobs available in DataStage?

  • Server job
  • Parallel job
  • Sequencer job
  • Container job

Q.6) State the difference between Server job and parallel job ?

Server Jobs work in a sequential way while parallel jobs work in parallel fashion (Parallel Extender works on the principle of pipeline and partition) for I/O processing.

Q.7) At which location DataStage repository is stored?

DataStage stores its repository in IBM Universe Database.

Q.8) Who are the DataStage clients or users?

DataStage tool can be used by :

  • DataStage Administrator
  • DataStage Designer
  • DataStage Manager
  • DataStage Director

Q.9) Explain Metadata.

Data about data is known as metadata. A table definition describing the structure of the table is known as metadata.

Q.10) State maps and locales

Maps: Maps defines the sets that can be utilized in a project
Locales: Locales define the local formats for date, time, sorting order, etc. that can be utilized in a project.

Q.11) Differentiate between DataStage and Informatica.

  • DataStage supports parallel processing which Informatica doesn’t.
  • Links are objects in the DataStage, but in Informatica it’s a port to port connectivity.
  • In Informatica it is easy to implement Slowly Changing Dimensions which is a little bit complex in DataStage.
  • DataStage doesn’t support complete error handling.

Q.12) State the types of server components.

  • Repository
  • DataStage Server
  • DataStage Package Installer

Q.13) Define universal stage

A stage that extracts data from or loads data into a Universe database using SQL. It is used to represent a data source, an aggregation step, or a target data table.

Q.14) What is a dynamic array in DataStage?

Dynamic arrays map the structure of DataStage file records to character string data. Any character string can be a dynamic array. A dynamic array is a character string containing elements that are substrings separated by delimiters.

Q.15) What are the components of Ascential Datastage?

Client Components : Administrator, Director, Manager, and Designer.
Server Components : Repository, Server and Plug–ins.

Q.16) What are the two types of containers used in DataStage?

DataStage has two types of containers – Local Container and Shared Container

Q.17) What is the hash file stage in DataStage?

Hash file stage is a binary file used for lookup, for better performance.

Q.18) State staging variable

Staging variables are the temporary variables created in the transformer for calculation.

Q.19) How can u convert the columns to rows in DataStage?

The conversion of columns into rows can be done in DataStage utilizing pivot stage.

Q.20) What is the merge stage?

The Merge stage combines a sorted master data set with one or more sorted update data sets. The columns from the records in the master and update data sets are merged so that the output record contains all the columns from the master record plus any additional columns from each update record.

Q.21) State the term repository.

Repository is a central store that contains all the information required to build a data mart or data warehouse.

Q.22) What is the work of a DataStage server?

A DataStage server runs executable jobs that extract, transform, and load data into a data warehouse.

Q.23) State a few advantages of DataStage.

A data warehousing strategy has the following advantages :

  • Capitalizes on the potential value of the organization’s information.
  • Improves the quality and accessibility of data.
  • Combines valuable archive data with the latest data in operational sources.
  • Increases the amount of information available to users.
  • Reduces the requirement of users to access operational data.
  • Reduces the strain on IT departments, as they can produce one database to serve all user groups.
  • Allows new reports and studies to be introduced without disrupting operational systems.
  • Promotes users to be self-sufficient.

Q.24) We have two containers in DataStage – local and shared containers, what does it mean?

Local Container is local to the particular job in which we have developed the container and Shared Container can be used in any other jobs.

Q.25) I have stored my data at orabulk stage, what does it mean?

OraBulk stage is used to Bulk Load the Oracle Target Database. By storing data at the OraBulk stage of DataStage means your data is stored at the Oracle Target Database.

Q.26) Define Active and Passive stages.

Passive Stage is used for data extraction and loading
Active Stage is used to implement and process the business rules

Q.27) What do you mean by data repository?

MetaData is a data about the data. It contains :

  • Query statistics
  • ETL statistics
  • Business subject area
  • Source information
  • Target information
  • Source to target mapping Information

Q.28) What is meant by join stage and merge stage?

Join stage is used to perform join operations on one or more data sets input to the stage and then outputs the resulting dataset.

Merge stage is used to combine a sorted master data set with one or more sorted updated data sets. The columns from the records in the master and update data sets arc merged so that the output record contains all the columns from the master record plus any additional columns from each update record that required.

Q.29) What is the default cache size in DataStage?

The default cache size in DataStage is 256 mb.

Q30) Can you reuse the components? If yes, then how?

The components in DataStage can be reused by using shared and local containers.

Q.31) How can we eliminate duplicate rows?

DataStage provides us the capability to eliminate duplicate rows in EE (Enterprise Edition) only. Using EE of DataStage, the elimination of duplicate rows can be done based on a key column.

Q.32) What command line functions are used to import and export the DataStage jobs?

dsimport.exe command line function is used to import the DataStage components
dsexport.exe command line function is used to export the DataStage components

Q.33) Did you use the conditional scheduling in your project? What is the use of it?

Once during my project I have used conditional scheduling. Using Sequencer Job we can create the conditional scheduling.

Q.34) What can we do with the DataStage Director?

Validating, Scheduling, Executing and Monitoring Jobs (server Jobs).

Q.35) What is Hash file and Sequential file?

Hash file saves data on a hash algorithm and on a hash key value, while a sequential file doesn’t have any key value to save the data. Based on this hash key feature, searching in a Hash file is faster than in a sequential file.

Q.36) What is meant by NLS in DataStage?

NLS is referred to as National Language Support

Q.37)Explain integrity stage.

Integrity stage is also known as the quality stage that helps in assistance in integrating various types of data from different sources.

Q.38) Describe Oconv () And Iconv () Functions In Datastage?

In Datastage, OConv () and IConv() functions are used to convert formats from one format to another i.e. conversions of time, roman numbers, radix, date, numeral ASCII etc. IConv () is mostly used to change formats for the system to understand. While, OConv () is used to change formats for users to understand.

Q.39) Explain BCP stage.

The BCP stage is used to store a big amount of data in one target table of Microsoft SQL Server.

Q.40) What is the need of a link partitioner and link collector in DataStage?

In Datastage, Link Partitioner is used to split data into various parts by certain partitioning methods. Link Collector is used to collect data from many partitions to a single data and save it in the target table.

Q.41) State the difference between DataStage and DataStage TX.

Datastage is a tool from ETL (Extract, Transform and Load) and DataStage TX is a tool from EAI (Enterprise Application Integration).

Q.42) What is the use of Surrogate key?

In Datastage, Surrogate Key is used instead of unique key. Surrogate key is mostly used for retrieving data faster. It uses Index to perform the retrieval operation. Surrogate key is a 4-byte integer which replaces the transaction / business / OLTP key in the dimension table. We can store up to 2 billion records.

The need of Surrogate key is for integrating the data may help better for the primary key. Additionally, it is used for index maintenance, joins, table size, key updates, disconnected inserts and partitioning.

Q.43) How will you declare a constraint in DataStage?

Constraints are expressions and you can specify a constraint for each output link from a transformer stage. You can also specify that a particular link is to act as an otherwise link and catch those rows that have failed to satisfy the constraints on all other output links.

  • Select an output link and click the constraints button
  • Double-click the output link’s constraint entry field
  • Choose Constraints from the background or header shortcut menus
  • A dialog box will appear which allows you either to define constraints for any of the transformer output links or to define a link as an otherwise link

Q.44) How to execute a DataStage job from the command line?

Using “dsjob”. Following is the command:
dsjob -run -jobstatus projectname jobname

Q.45) What components are there in DataStage architecture?

DataStage has three main components:

Client component :

  1. DataStage Administrator
  2. DataStage Manager
  3. DataStage Designer
  4. DataStage Director

Server component

  1. DataStage Engine
  2. MetaData Repository
  3. Package Installer

DataStage administrator

  1. Used to create the project
  2. Contains set of properties

Q.46) Explain Types of Fact Tables?

Factless Fact: It contains only foreign keys to the dimension tables.
Additive Fact: Measures can be added across any dimensions.
Semi-Additive: Measures can be added across some dimensions. Eg. % age, discount
Non-Additive: Measures cannot be added across any dimensions. Eg. Average
Conformed Fact: The equation or the measures of the two fact tables are the same under the facts are measured across the dimensions with the same set of measures.

Q.47) What are the types of dimension tables?

Conformed Dimension:
If a dimension table is connected to more than one fact table, the granularity that is defined in the dimension table is common across between the fact tables.

Junk Dimension:
The Dimension table, which contains only flags.
Monster Dimension: If rapidly changes occur in dimension then it is known as Monster Dimension.

Degenerate Dimension:

It is line item-oriented fact table design.

Q.48) What are Macros?

They are built from DataStage functions and do not require arguments. A number of macros are provided in the JOBCONTROL.H file to facilitate getting information about the current job, and links and stages belonging to the current job. These can be used in expressions (for example for use in Transformer stages), job control routines, filenames and table names, and before/after subroutines.

Q.49) What is Conformed Dimension?

In DataStage, a conformed dimension is a dimension that has the same meaning to every fact with what it relates. It can exist as a single dimension table that relates to multiple fact tables within the same data warehouse, or as identical dimension tables in separate data marts.

Q.50) Difference between Validated Ok and Compiled in DataStage

Validating a job is all about running the job in ‘Check only’ mode.

The checks that will perform are

  1. The connections are established to data sources or data warehouse
  2. The SELECT statements are prepared
  3. Intermediate files are opened in Hashed file, UniVerse or ODBC stages

Compilation is done by :

Checking data stage engine to determine whether all needed properties are given
Upon selecting Validate Job, the data stage checks the validity of all given properties

Capgemini DataStage Interview Questions:

Let us now give a quick view at a few of the DataStage real time interview questions that are asked in various interviews in Capgemini like companies. You might get many of the answers in the above questions and answers area but many of them are scenario based DataStage question answers that depend upon your logic and knowledge of DataStage.

  1. Tell me about your current Project?
  2. What is the Difference between server jobs and Parallel jobs?
  3. How can you capture the Duplicate values if I have Duplicate Records?
  4. How do you Remove the Dataset in Unix?
  5. What is the difference between Hash file and Lookup File set stages?
  6. What is the default padding character?
  7. What are the partition techniques available in your last project?
  8. What is meant by preserving partitioning mode?
  9. What is the default execution order of the sequential file?
  10. Can we use a sequential file as a source to hash files? Have you done it? If yes, what error will it give?
  11. How many input links can you give to a Transformer stage?
  12. Can aggregator and transformer stages be used to sort the data? How?
  13. What is the use of Union in Oracle? If I write a query select * from EMP UNION select * from DEPT, is it executed well?
  14. What is the difference between Union and Union All?
  15. What is the difference between Replace and Truncate?
  16. How do you get system Date in oracle?
  17. How do you design PX Routines?
  18. What are the stages you used in the Job sequencer?
  19. What is the use of Wait-for- file activity?
  20. What are the triggers available in sequencer activity?
  21. How many Exception handler activities can you call to one sequencer?
  22. How can you Execute jobs in the command line?
  23. What are the third party tools you used in your project?
  24. Explain the situation where you have applied SCD in your project
  25. Tell me the syntax of Configuration file?
  26. How many Nodes configuration files did you use in your last project?
  27. What is the command to see the list of files?
  28. What is the Use of ls –ltr Command?
  29. How to kill a job in UNIX?
  30. What is the command to send mail to the corresponding person when my job got aborted?

Final Words :
The above write up is written to give a glance about DataStage production support interview questions. I hope the above write up will help you in gaining your dream job in DataStage!