Something about DataStage, DataStage Administration, Job Designing,Developing, DataStage troubleshooting, DataStage Installation & Configuration, ETL, DataWareHousing, DB2, Teradata, Oracle and Scripting.
Showing posts with label routine. Show all posts
Showing posts with label routine. Show all posts
Friday, July 25, 2014
DataStage Custom Routine to Get a File Size
Below is a DataStage custom transform routine to get the size of a file. The full path of the file is passed in as a parameter called "Filename".
Wednesday, April 09, 2014
Some more design tips for DataStage Job Development
• Common information like home directory, system date, username, password should be initialized in a global variable and then variable should be referred everywhere.
• Stage Variables allow you to hold data from a previous record when the next record, allowing you to compare between previous and current records. Stage variables also allow you return multiple errors for a record of information. By being able to evaluate all data in a record and not just error on the first exception that is found, the cleanup of data is more efficient and requires less iteration.
Monday, February 17, 2014
Datastage Coding Checklist
- Ensure that the null handling properties are taken care for all the nullable fields. Do not set the null field value to some value which may be present in the source.
- Ensure that all the character fields are trimmed before any processing. Normally extra spaces in the data may lead to some errors like lookup mismatch which are hard to detect.
- Always save the metadata (for source, target or lookup definitions) in the repository to ensure re usability and consistency.
Thursday, December 12, 2013
Interview Questions : DataStage - self-3
100 If 1st and 8th record is duplicate then which will be skipped? Can you configure it?
101 How do you import and export datastage jobs? What is the file extension? (See each component while importing and exporting).
102 How do you rate yourself in DataStage?
103 Explain DataStage Architecture?
104 What is repository? What are the repository items?
105 What is difference between routine and transform?
106 When you write the routines?
Wednesday, November 13, 2013
Interview Questions : DataStage - self-2
48 Why can’t we use sequential file as a lookup?
49 What is data warehouse?
50 What is ‘Star-Schema’?
51 What is ‘Snowflake-Schema’?
52 What is difference between Star-Schema and Snowflake-Schema?
53 What is mean by surrogate key?
54 What is ‘Conformed Dimension’?
Tuesday, October 15, 2013
How many places u can call Routines?
Routines can be called at the following places:
a) In the job properties There is an option to call the Before and After job subroutines.
b) In the job sequence there is an activity called "Routine Activity".From there also the routines could be called.
c) In the derivation part of theTransformer of a parallel job "parallel routines"can be called.
d) In the derivation part of theTransformer of a server job "server routines"can be called.
f)In the server job stages also before and after job subroutines can be called.
g)We have called routines from user variable activity of a sequence as well.(Here basically transforms are called which return a value to the variable of the user variable activity after their execution.)
Thursday, September 26, 2013
Interview Questions : DataStage - Part 2
For more : Visit HERE
What is the importance of Surrogate
Key in Data warehousing?
Ans : Surrogate Key is a Primary Key for a Dimension table. Most
importance of using it is independent of underlying database. i.e Surrogate Key
is not affected by the changes going on with a database
What does a Config File in parallel
extender consist of?
Ans: Config file consists of the following.
a) Number of Processes or Nodes.
b) Actual Disk Storage Location.
a) Number of Processes or Nodes.
b) Actual Disk Storage Location.
Friday, August 23, 2013
DataStage BASIC functions
These functions can be used in a job control routine, which is defined as part of a jobs properties and allows other jobs to be run and controlled from the first job. Some of the functions can also be used for getting status information on the current job; these are useful in active stage expressions and before- and after-stage subroutines.
Specify the job you want to control
DSAttachJob
Saturday, June 30, 2012
DataStage FAQ1
1. What are the ways to
execute DataStage jobs?
A
job can be run using a few different methods:
*
from DataStage Director (menu Job -> Run now...)
*
from command line using a dsjob command
*
DataStage routine can run a job (DsRunJob command)
*
by a job sequencer
2. How to invoke a
DataStage shell command?
DataStage
shell commands can be invoked from :
*
DataStage administrator (projects tab -> Command)
*
Telnet client connected to the DataStage server
Subscribe to:
Posts
(
Atom
)