DataStage Interview Questions And Answers

DataStage is a popular tool in the industry, and proficiency in it can open up job opportunities in various organizations. This DataStage Interview Questions blog covers all the important questions that are asked by top companies in most DataStage-related job interviews. By studying them, you can crack your job interview easily in the corporate world. So do checkout them to know the top questions asked by recruiters today!

Rating: 4.8
  
 
59055

DataStage Interview Questions And Answers 2021. Here Mindmajix sharing a list of 60 Real-Time DataStage Interview Questions For Freshers and Experienced. These DataStage questions were asked in various interviews and prepared by DataStage experts. Learn DataStage interview questions and crack your next interview.

We have categorized DataStage Interview Questions into 4 levels they are:

Below mentioned are the Top Frequently asked Datastage Interview Questions and Answers that will help you to prepare for the Datastage interview. Let's have a look at them.

Top 10 DataStage Interview Questions

  1. What is Datastage?
  2. Explain the DataStage parallel Extender or Enterprise Edition (EE)?
  3. What is a conductor node in DataStage?
  4. How do you run the DataStage job from the command line? 
  5. What are the different options associated with the "dsjob" command?
  6. Can you explain the difference between sequential file, dataset and fileset?
  7. What is Kafka Connector?
  8. What are the features of DataStage Flow Designer?
  9. What are the benefits of Flow Designer?
  10. What is an HBase connector?

Best Datastage Interview Questions

1. What is Datastage?

DataStage is an ETL tool and part of the IBM Information Platforms Solutions suite and IBM InfoSphere. It uses a graphical notation to construct data integration solutions and is available in various versions such as the Server Edition, the Enterprise Edition, and the MVS Edition.

Explore DataStage Tutorial for more information

2. Explain the DataStage parallel Extender or Enterprise Edition (EE)?

Parallel extender in DataStage is the data extraction and transformation application for parallel processing. 

There are two types of parallel processing's are available they are:

  1. Pipeline Parallelism
  2. Partition Parallelism

3. What is a conductor node in DataStage?

Actually, every process contains a conductor process where the execution was started and a section leader process for each processing node and a player process for each set of combined operators, and an individual player process for each uncombined operator.

Whenever we want to kill a process we should have to destroy the player process and then the section leader process and then the conductor process.

4. How do you run the DataStage job from the command line? 

Using "dsjob" command as follows. 

dsjob -run -jobstatus projectname jobname

Datastage Interview Questions for Beginners

5. What are the different options associated with "dsjob" command?

ex: $dsjob -run  and also the options like 

  • stop -To stop the running job 
  • lprojects - To list the projects 
  • ljobs - To list the jobs in the project 
  • lstages - To list the stages present in the job. 
  • llinks - To list the links. 
  • projectinfo - returns the project information(hostname and project name) 
  • jobinfo - returns the job information(Job-status,job runtime,endtime, etc.,) 
  • stageinfo - returns the stage name, stage type, input rows, etc.,) 
  • linkinfo - It returns the link information
  • lparams - To list the parameters in a job 
  • paraminfo - returns the parameters info 
  • log - add a text message to log. 
  • logsum - To display the log 
  • logdetail - To display with details like event_id, time, message 
  • lognewest - To display the newest log id. 
  • report - display a report contains Generated time, start time, elapsed time, status, etc., 
  • jobid - Job id information.
Want to Enrich your career with a DataStage certified professional, then enroll in our “DataStage Training” This course will help you to achieve excellence in this domain.

6. Can you explain the difference between sequential file, dataset, and fileset?

Sequential File: 

  1. Extract/load from/to seq file max 2GB
  2. When used as a source at the time of compilation it will be converted into a native format from ASCII
  3. Does not support null values
  4. Seq file can only be accessed on one node.

Dataset:

  1. It preserves partition.it stores data on the nodes so when you read from a dataset you don't have to repartition the data
  2. It stores data in binary in the internal format of Datastage. so it takes less time to read/write from ds to any other source/target.
  3. You cannot view the data without Datastage.
  4. It Creates 2 types of files to store the data.
    • Descriptor File: Which is created in a defined folder/path.

    • Data File: Created in the Dataset folder mentioned in the configuration file.

  5. Dataset (.ds) file cannot be open directly, and you could follow alternative ways to achieve that, Data Set Management, the utility in client tool(such as Designer and Manager), and command-line ORCHADMIN.

Fileset:

  1. It stores data in a format similar to that of a sequential file. The only advantage of using a fileset over a seq file is it preserves the partition scheme.
  2. you can view the data but in the order defined in the partitioning scheme.
  3. Fileset creates a .fs file and a .fs file is stored in ASCII format, so you could directly open it to see the path of the data file and its schema.

 MindMajix YouTube Channel

8. What are the features of DataStage Flow Designer?

DataStage Flow Designer Features:

  • IBM DataStage Flow Designer has many features to enhance your job-building experience. 
  • We can use the palette to drag and drop connectors and operators onto the designer canvas. 
  • We can link nodes by selecting the previous node and dropping the next node or drawing the link between the two nodes. 
  • We can edit stage properties on the sidebar, and make changes to your schema in the Column Properties tab. 
  • We can zoom in and zoom out using your mouse, and leverage the mini-map on the lower-right of the window to focus on a particular part of the DataStage job. 
  • This is very useful when you have a very large job with tens or hundreds of stages.

9. What are the benefits of Flow Designer?

There are many benefits with Flow designer, they are:

  • No need to migrate jobs - You do not need to migrate jobs to a new location in order to use the new web-based IBM DataStage Flow Designer user interface.
  • No need to upgrade servers and purchase virtualization technology licenses - Getting rid of a thick client means getting rid of keeping up with the latest version of the software, upgrading servers, and purchasing Citrix licenses. IBM DataStage Flow Designer saves time AND money!
  • Easily work with your favorite jobs - You can mark your favorite jobs in the Jobs Dashboard, and have them automatically show up on the welcome page. This gives you fast, one-click access to jobs that are typically used for reference, saving you navigation time.
  • Easily continue working where you left off - Your recent activity automatically shows up on the welcome page. This gives you fast, one-click access to jobs that you were working on before, so you can easily start where you left off in the last session.
  • Efficiently search for any job - Many organizations have thousands of DataStage jobs. You can very easily find your job with the built-in type-ahead Search feature on the Jobs Dashboard.
  • Cloning a job - Instead of always starting Job Design from scratch, you can clone an existing job on the Jobs Dashboard and use that to jump-start your new Job Design. 
  • Automatic metadata propagation - IBM DataStage Flow Designer comes with a powerful feature to automatically propagate metadata. Once you add a source connector to your job and link it to an operator, the operator automatically inherits the metadata. You do not have to specify the metadata in each stage of the job.
  • Storing your preferences - You can easily customize your viewing preferences and have the IBM DataStage Flow Designer automatically save them across sessions. 
  • Saving a job - IBM DataStage Flow Designer allows you to save a job in any folder. The job is saved as a DataStage job in the repository, alongside other jobs that might have been created using the DataStage Designer thick client.
  • Highlighting of all compilation errors - The DataStage thick client identifies compilation errors one at a time. Large jobs with many stages can take longer to troubleshoot in this situation. IBM DataStage Flow Designer highlights all errors and gives you a way to see the problem with a quick hover over each stage, so you can fix multiple problems at the same time before recompiling.
  • Running a job - IBM DataStage Flow Designer allows you to run a job. You can refresh the status of your job on the new user interface. You can also view the Job Log, or launch the Ops Console to see more details of job execution

10. What is an HBase connector?

HBase connector is used to connect to tables stored in the HBase database and perform the following operations:

  • Read data from or write data to HBase database.
  • Read data in parallel mode.
  • Use HBase table as a lookup table in sparse or normal mode.

11. What is a Hive connector?

Hive connector supports modulus partition mode and minimum-maximum partition mode during the read operation.

12. What is Kafka connector?

A) Kafka connector has been enhanced with the following new capabilities:

  • Continuous mode, where incoming topic messages are consumed without stopping the connector.
  • Transactions, where a number of Kafka messages is fetched within a single transaction. After the record count is reached, an end of the wave marker is sent to the output link.
  • TLS connection to Kafka.
  • Kerberos keytab locality is supported.

13. What is the Amazon S3 connector?

Amazon S3 connector now supports connecting by using an HTTP proxy server.

14. What is a File connector?

File connector has been enhanced with the following new capabilities:

  • Native HDFS FileSystem model is supported.
  • You can import metadata from the ORC files.
  • New data types are supported for reading and writing the Parquet formatted files: Date / Time and Timestamp.

15. Explain is Infosphere Information Server?

InfoSphere Information Server is capable of scaling to meet any information volume requirement so that companies can deliver business results faster and with higher quality results. InfoSphere Information Server provides a single unified platform that enables companies to understand, cleanse, transform, and deliver trustworthy and context-rich information.

16. What are the different Tiers available in the InfoSphere Information Server?

In the InfoSphere information server there are four tiers are available, they are: 

  1. Client Tier
  2. Engine Tier
  3. Services Tier
  4. Metadata Repository Tier

17. What is the Client tier in the Information server?

The client tier includes the client programs and consoles that are used for development and administration and the computers where they are installed.

18. What is the Engine tier in the Information server?

The engine tier includes the logical group of components (the InfoSphere Information Server engine components, service agents, and so on) and the computer where those components are installed. The engine runs jobs and other tasks for product modules.

19. What is the Services tier in the Information server?

The services tier includes the application server, common services, and product services for the suite and product modules, and the computer where those components are installed. The services tier provides common services (such as metadata and logging) and services that are specific to certain product modules. On the services tier, the WebSphere® Application Server hosts the services. The services tier also hosts InfoSphere Information Server applications that are web-based.

20. Metadata repository tier in Information server? 

The metadata repository tier includes the metadata repository, the InfoSphere Information Analyzer analysis database (if installed), and the computer where these components are installed. The metadata repository contains the shared metadata, data, and configuration information for InfoSphere Information Server product modules. The analysis database stores extended analysis data for InfoSphere Information Analyzer.

Datastage Scenario Based Interview Questions for Experienced

21. What are the key elements of Datastage?

DataStage provides the elements that are necessary to build data integration and transformation flows. 

These elements include 

  • Stages
  • Links
  • Jobs
  • Table definitions
  • Containers
  • Sequence jobs
  • Projects

22. What are Stages in Datastage?

Stages are the basic building blocks in InfoSphere DataStage, providing a rich, unique set of functionality that performs either a simple or advanced data integration task. Stages represent the processing steps that will be performed on the data.

23. What are Links in Datastage?

A link is a representation of a data flow that joins the stages in a job. A link connects data sources to processing stages, connects processing stages to each other, and also connects those processing stages to target systems. Links are like pipes through which the data flows from one stage to the next.

24. What are Jobs in Datastage?

Jobs include the design objects and compiled programmatic elements that can connect to data sources, extract and transform that data, and then load that data into a target system. Jobs are created within a visual paradigm that enables instant understanding of the goal of the job.

25. What are Sequence jobs in Datastage?

A sequence job is a special type of job that you can use to create a workflow by running other jobs in a specified order. This type of job was previously called a job sequence.

26. What are Table definitions?

Table definitions specify the format of the data that you want to use at each stage of a job. They can be shared by all the jobs in a project and between all projects in InfoSphere DataStage. Typically, table definitions are loaded into source stages. They are sometimes loaded into target stages and other stages.

27. What are Containers in Datastage?

Containers are reusable objects that hold user-defined groupings of stages and links. Containers create a level of reuse that allows you to use the same set of logic several times while reducing the maintenance. Containers make it easy to share a workflow because you can simplify and modularize your job designs by replacing complex areas of the diagram with a single container.

28. What are Projects in Datastage?

A project is a container that organizes and provides security for objects that are supplied, created, or maintained for data integration, data profiling, quality monitoring, and so on.

29. What is Parallel processing design?

InfoSphere DataStage brings the power of parallel processing to the data extraction and transformation process. InfoSphere DataStage jobs automatically inherit the capabilities of data pipelining and data partitioning, allowing you to design an integration process without concern for data volumes or time constraints, and without any requirements for hand-coding.

30. What are the types of parallel processing?

InfoSphere DataStage jobs use two types of parallel processing:

  1. Data pipelining
  2. Data partitioning

31. What is Data pipelining?

Data pipelining is the process of extracting records from the data source system and moving them through the sequence of processing functions that are defined in the data flow that is defined by the job. Because records are flowing through the pipeline, they can be processed without writing the records to disk.

32. What is Data partitioning?

Data partitioning is an approach to parallelism that involves breaking the records into partitions, or subsets of records. Data partitioning generally provides linear increases in application performance.

When you design a job, you select the type of data partitioning algorithm that you want to use (hash, range, modulus, and so on). Then, at runtime, InfoSphere DataStage uses that selection for the number of degrees of parallelism that are specified dynamically at run time through the configuration file.

33. What are Operators in Datastage?

A single stage might correspond to a single operator, or a number of operators, depending on the properties you have set, and whether you have chosen to partition or collect or sort data on the input link to a stage. At compilation, InfoSphere DataStage evaluates your job design and will sometimes optimize operators out if they are judged to be superfluous, or insert other operators if they are needed for the logic of the job.

34. What is OSH in Datastage?

OSH is the scripting language used internally by the parallel engine.

35. What are Players in Datastage?

Players are the workhorse processes in a parallel job. There is generally a player for each operator on each node. Players are the children of section leaders; there is one section leader per processing node. Section leaders are started by the conductor process running on the conductor node (the conductor node is defined in the configuration file).

36. What are the two major ways of combining data in an InfoSphere DataStage Job? How do you decide which one to use?

the two major ways of combining data in an InfoSphere DataStage job are via a Lookup stage or a Join stage

  1. Lookup and Join stages perform equivalent operations: combining two or more input data sets based on one or more specified keys. When one unsorted input is very large or sorting is not feasible, Lookup is preferred. When all inputs are of a manageable size or are pre-sorted, Join is the preferred solution.
  2. The Lookup stage is most appropriate when the reference data for all Lookup stages in a job is small enough to fit into available physical memory. Each lookup reference requires a contiguous block of physical memory. The Lookup stage requires all but the first input (the primary input) to fit into physical memory.

37. What is the advantage of using Modular development in the data stage?

We should aim to use modular development techniques in your job designs in order to maximize the reuse of parallel jobs and components and save yourself time.

38. What is Link buffering?

InfoSphere DataStage automatically performs buffering on the links of certain stages. This is primarily intended to prevent deadlock situations arising (where one stage is unable to read its input because a previous stage in the job is blocked from writing to its output).

39. How do you import and export data into Datastage?

Here are the points on how to import and export data into Datastage

  • The import/export utility consists of these operators:
  • The import operator: imports one or more data files into a single data set.
  • The export operator: exports a data set to one or more data files.

40. What is the collection library in Datastage?

The collection library is a set of related operators that are concerned with collecting partitioned data.

41. What are the collectors available in the collection library?

The collection library contains three collectors:

  1. The ordered collector
  2. The round-robin collector
  3. The sortmerge collector

42. What is the ordered collector?

The Ordered collector reads all records from the first partition, then all records from the second partition, and so on. This collection method preserves the sorted order of an input data set that has been totally sorted. In a totally sorted data set, the records in each partition of the data set, as well as the partitions themselves, are ordered.

43. What is the round-robin collector?

The round-robin collector reads a record from the first input partition, then from the second partition, and so on. After reaching the last partition, the collector starts over. After reaching the final record in any partition, the collector skips that partition.

44. What is the sortmerge collector?

The sortmerge collector reads records in an order based on one or more fields of the record. The fields used to define record order are called collecting keys.

45. What is aggtorec restructure operator and what it does?

aggtorec restructure operator groups records that have the same key-field values into an output record

46. What is the field_export restructure operator and what it does?

field_export restructure operator combines the input fields specified in your output schema into a string- or raw-valued field

47. What is the field_import restructure operator and what it does?

field_import restructure operator exports an input string or raw field to the output fields specified in your import schema.

48. What is makesubrec restructure operator and what it does?

makesubrec restructure operator combines specified vector fields into a vector of subrecords

49. What is makevect restructure operator and what it does?

makevect restructure operator combines specified fields into a vector of fields of the same type

50. What is promotesubrec restructure operator and what it does?

promotesubrec restructure operator converts input sub-record fields to output top-level fields

Advanced DataStage Interview Questions

51. What is splitsubrec restructure operator and what it does?

splitsubrec restructure operator separates input sub-records into sets of output top-level vector fields

52. What is splitvect restructure operator and what it does?

splitvect restructure operator promotes the elements of a fixed-length vector to a set of similarly-named top-level fields

53. What is tagbatch restructure operator and what it does?

tagbatch restructure operator converts tagged fields into output records whose schema supports all the possible fields of the tag cases.

54. What is tagswitch restructure operator and what it does?

The contents of tagged aggregates are converted to InfoSphere DataStage-compatible records.

Datastage UNIX Interview Questions

55. How do you print/display the first line of a file?

The easiest way to display the first line of a file is using the [head] command.

$> head -1 file.txt

If you specify [head -2] then it would print first 2 records of the file.

Another way can be by using [sed] command. [Sed] is a very powerful text editor which can be used for various text manipulation purposes like this.

$> sed '2,$ d' file.txt

56. How do you print/display the last line of a file?

The easiest way is to use the [tail] command.

$> tail -1 file.txt

If you want to do it using [sed] command, here is what you should write:

$> sed -n '$ p' test

57. How to display n-th line of a file?

The easiest way to do it will be by using [sed] command

$> sed –n ' p' file.txt

You need to replace with the actual line number. So if you want to print the 4th line, the command will be

$> sed –n '4 p' test

Of course you can do it by using [head] and [tail] command as well like below:

$> head - file.txt | tail -1

You need to replace with the actual line number. So if you want to print the 4th line, the command will be

$> head -4 file.txt | tail -1

58. How to remove the first line/header from a file?

We already know how [sed] can be used to delete a certain line from the output – by using the'd' switch. So if we want to delete the first line the command should be:

$> sed '1 d' file.txt

But the issue with the above command is, it just prints out all the lines except the first line of the file on the standard output. It does not really change the file in-place. So if you want to delete the first line from the file itself, you have two options.

Either you can redirect the output of the file to some other file and then rename it back to original file like below:

$> sed '1 d' file.txt > new_file.txt

$> mv new_file.txt file.txt

Or, you can use an inbuilt [sed] switch '–i' which changes the file in-place. See below:

$> sed –i '1 d' file.txt

59. How to remove the last line/ trailer from a file in Unix script?

Always remember that [sed] switch '$' refers to the last line. So using this knowledge we can deduce the below command:

$> sed –i '$ d' file.txt

60. How to remove certain lines from a file in Unix?

If you want to remove line to line from a given file, you can accomplish the task in the similar method shown above. Here is an example:

$> sed –i '5,7 d' file.txt

The above command will delete line 5 to line 7 from the file file.txt

Explore DataStage Sample Resumes! Download & Edit, Get Noticed by Top Employers!

 

Join our newsletter
inbox

Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!

Course Schedule
NameDates
DataStage TrainingMay 11 to May 26View Details
DataStage TrainingMay 14 to May 29View Details
DataStage TrainingMay 18 to Jun 02View Details
DataStage TrainingMay 21 to Jun 05View Details
Last updated: 05 Jun 2023
About Author

Ravindra Savaram is a Technical Lead at Mindmajix.com. His passion lies in writing articles on the most popular IT platforms including Machine learning, DevOps, Data Science, Artificial Intelligence, RPA, Deep Learning, and so on. You can stay up to date on all these technologies by following him on LinkedIn and Twitter.

read more