IBM Websphere DataStage Interview questions & Answers |
1. How do you rename all of the jobs to support your new File-naming conventions?A: Create a Excel spreadsheet with new and old names. Export the whole project as a dsx. Write a Perl program, which can do a simple rename of the strings looking up the Excel file. Then import the new dsx file probably into a new project for testing. Recompile all jobs. Be cautious that the name of the jobs has also been changed in your job control jobs or Sequencer jobs. So you have to make the necessary changes to these Sequencers. 2. Does the selection of 'Clear the table and Insert rows' in the ODBC stage send a Truncate statement to the DB or does it do some kind of Delete logic.A: There is no TRUNCATE on ODBC stages. It is Clear table blah blah and that is a delete from statement. On an OCI stage such as Oracle, you do have both Clear and Truncate options. They are radically different in permissions (Truncate requires you to have alter table permissions where Delete doesn't). 3. Tell me one situation from your last project, where you had faced problem and How did u solve it?A: The jobs in which data is read directly from OCI stages are running extremely slow. I had to stage the data before sending to the transformer to make the jobs run faster.
4. The above might rise another question: Why do we have to load the dimensional tables first, then fact tables:A:
5. How will you determine the sequence of jobs to load into data warehouse?A: First we execute the jobs that load the data into Dimension tables, then Fact tables, then load the Aggregator tables (if any). 6. What are the command line functions that import and export the DS jobs?A: 7. What is the utility you use to schedule the jobs on a UNIX server other than using Ascential Director?A: Use crontab utility along with dsexecute() function along with proper parameters passed. 8. How would call an external Java function which are not supported by DataStage?A: Starting from DS 6.0 we have the ability to call external Java functions using a Java package from Ascential. In this case we can even use the command line to invoke the Java function and write the return values from the Java program (if any) and use that files as a source in DataStage job.
9. What will you in a situation where somebody wants to send you a file and use that file as an input or reference and then run job.A: A. Under Windows: Use the 'WaitForFileActivity' under the Sequencers and then run the job. May be you can schedule the sequencer around the time the file is expected to arrive. 10. Read the String functions in DSA: Functions like [] -> sub-string function and ':' -> concatenation operator 11. How did u connect with DB2 in your last project?A:
12. What are Sequencers?A: Sequencers are job control programs that execute other jobs with preset Job parameters. 13. How did you handle an 'Aborted' sequencer?A: In almost all cases we have to delete the data inserted by this from DB manually and fix the job and then run the job again. 14. What are other Performance tunings you have done in your last project to increase the performance of slowly running jobs?A: 15. How did you handle reject data?A:
16. If worked with DS6.0 and latest versions what are Link-Partitioner and Link-Collector used for?A: Link Partitioner - Used for partitioning the data. 17. What are Routines and where/how are they written and have you written any routines before?A: Routines are stored in the Routines branch of the DataStage Repository, where you can create, view or edit. The following are different types of routines: 18. What are OConv () and Iconv () functions and where are they used?A: IConv() - Converts a string to an internal storage format 19. How did u connect to DB2 in your last project?A: Using DB2 ODBC drivers. 20. Do u know about METASTAGE?A: MetaStage is used to handle the Metadata which will be very useful for data lineage and data analysis later on. Meta Data defines the type of data we are handling. This Data Definitions are stored in repository and can be accessed with the use of MetaStage. 21. Do you know about INTEGRITY/QUALITY stage?A: Qulaity Stage can be integrated with DataStage, In Quality Stage we have many stages like investigate, match, survivorship like that so that we can do the Quality related works and we can integrate with datastage we need Quality stage plugin to achieve the task. 22. Explain the differences between Oracle8i/9i?A: 23. How do you merge two files in DS?A: Either use Copy command as a Before-job subroutine if the metadata of the 2 files are same or create a job to concatenate the 2 files into one if the metadata is different.
24. What is DS Designer used for?A: You use the Designer to build jobs by creating a visual design that models the flow and transformation of data from the data source through to the target warehouse. The Designer graphical interface lets you select stage icons, drop them onto the Designer work area, and add links.
25. What is DS Administrator used for?A: The Administrator enables you to set up DataStage users, control the purging of the Repository, and, if National Language Support (NLS) is enabled, install and manage maps and locales. 26. What is DS Director used for?A: datastage director is used to run the jobs and validate the jobs. 27. What is DS Manager used for?A: The Manager is a graphical tool that enables you to view and manage the contents of the DataStage Repository 28. What are Static Hash files and Dynamic Hash files?A: As the names itself suggest what they mean. In general we use Type-30 dynamic Hash files. The Data file has a default size of 2Gb and the overflow file is used if the data exceeds the 2GB size. 29. What is Hash file stage and what is it used for?A: Used for Look-ups. It is like a reference table. It is also used in-place of ODBC, OCI tables for better performance. 30. Have you ever involved in updating the DS versions like DS 5.X, if so tell us some the steps you have taken in doing so?A: Yes. The following are some of the steps; I have taken in doing so: 31. Did you Parameterize the job or hard-coded the values in the jobs?A: Always parameterized the job. Either the values are coming from Job Properties or from a ‘Parameter Manager’ – a third part tool. There is no way you will hard–code some parameters in your jobs. The often Parameterized variables in a job are: DB DSN name, username, password, dates W.R.T for the data to be looked against at. |