DataStage Interview Questions-5

  1. If sequence has 4 jobs, How to restart the run from 2nd job again?
  2. Answer:  Using check point concept to make it restart.

  3. Difference between Resource Disk and Resource Scratch Disk?Where are they specified?
  4. Answer:  Resource Disk is for permanent storage.(Hard disk of CPU). Resource Scratch disk is for temporary storage.(Like RAM). They are specified for each node in the configuration file.

  5. My job is aborting due to disk out of space issue?What you can suggest to resolve this?
  6. Answer:  Issue command ‘df –k’ in unix Then Check the space after that remove the unwanted log files and datasets.

  7. I have a field value “I owe you” . I want to pass this into 3 rows .
  8. Answer:  Before job sub routine put SED –s/” “/n/g and read the field with sequential file

  9. I have a source file with 14 columns. How to extract 10 fields out of it without changing jobs.
  10. Answer: awk –F ‘delimiter‘ {print $1,$2..$10}

  11. Write a command to see the dataset data. What are the prerequisites to execute this orchadmin command?
  12. Answer:  Orchadmin dump dataset > flatfile. Prerequisites are need to set up Export APTORCHHOME, CONFIG FILE, PATH

  13. I have a string “I love myself”. I want pass “myself “ only into one variable in my Shellscript.
  14. Answer:  cut –c 9-15

  15. There are several fields in a file. The number of fields in the file is unknown to me.What should I do to pass the last field’s value into one variable in my Shell script
  16. Answer:  var1 = awk –F ‘ ‘ {print$NF} filename

  17. What is the use of .profile to a datastage developer in unix?
  18. Answer:  The system runs $HOME/.profile whenever you log in. If you change your .profile, the changes don’t go into effect until you next log in. You should use your .profile to do the customizations that you need to do only once, or that you want all shells to inherit.

  19. How can you display the duplicate values from unix?
  20. Answer:  Uniq –D

  21. How to display the uniq records in unix. I don’t want to sort
  22. Answer:  awk ‘!seen[$0]++’ data.txt

  23. How to keep recent 5 days log files and remove rest of log files from log directory?
  24. Answer:  Unix Command : find /home/input/files* -mtime +5 -exec rm {} ;

  25. How to kill the data stage sessions from unix.
  26. Answer:  ps –eaf | grep slave| grep ds api and then find job pid and then kill -9

  27. What is the difference between Join and Merge
  28. Answer:  Join don’t support reject links Various ways in which data is being selected(joined)- different types of joins, inner, outer( left, right, full) Megre supports reject links, Data in Master record and update records are merged only when both have same value for the merge key columns

  29. What are the steps required to kill the job in Datastage
  30. Answer:  To kill the job in Datasatge, we have to kill the respective processing ID.

  31. Differentiate between validated and Compiled in the Datastage?
  32. Answer:  In Datastage, validating a job means, executing a job. While validating, the Datastage engine verifies whether all the required properties are provided or not. In other case, while compiling a job, the Datastage engine verifies that whether all the given properties are valid or not.

  33. Which two methods can be used for adding messages to a message handler
  34. Answer:  Type in the message rule by hand and Use the add rule to message hander interface

  35. Which two steps are required to change from a normal lookup to a sparse lookup in an ODBC Enterprise stage?
  36. Answer:  Change the lookup option in the stage properties to “Sparse” and Establish a relationship between the key field column in the source stage with the database table field.

  37. In which two situations would you use the Web Services Client stage?
  38. Answer:  need the Web service to act as either a data source or a data target during an operation, do not need both input and output links in a single web service operation

  39. Which two methods enable the collection of CPU time used by each instance of a stage?
  40. Answer:  Set the environment variable $APT_PM_PLAYER_TIMING=true and Select the Record job performance data check box from Job Properties

  41. Which three lookup types may be performed in the Lookup stage?
  42. Answer:  Equality match, Range on stream link and Range on the reference link

  43. How to convert VARCHAR field to date in DataStage job?
  44. Answer:  Use the Modify stage to perform the type conversion

  45. What is the correct syntax to start a multi-instance job?
  46. Answer:  dsjob -run -mode NORMAL .

  47. Which three property areas must be configured when using the ODBC connector stage as a target in your job design?
  48.  

    Previous Article:  DataStage Interview Questions-4

Comments

comments

Leave a Reply