- 
                    Datastage scenario - two columns in the sourceI have two columns in the source , COl A and Col B . 
 Input is like
 Cola Colb
 100 ABCDEF
 I should achieve the output as
 Cola Colb
 100 A
 100 B
 100 C
 100 D
 100 E
 100 F
 
 Note : Colb is not of fixed length .
 
 
- 
                    How to convert varchar to date ?i have one source file which contains the below data 
 input column: DOB varchar(8)
 20000303
 20000409
 1999043
 1999047
 validate the Date if valid date else pass the default-1999-12-31,convert varchar to date
- 
                    Data GranularityWhat is data granularity? Explain. 
- 
                    Copy Stage in ProcessingHaving single input in the source wants the repetition of the input in the column of the target using only copy stage. 
- 
                    What are the Datastage native operatorsWhat are the Datastage native operators?? 
 C
 C++
 BASIC
 OSH
 
 Could you brief this please
- 
                    What is the use of node in data stage ?If we increase the nodes wt will happens? 
- 
                    What is range look up and how it is used in datastage.Say I have 5 rows in a source table and for each rows 10 rows matching in a lookup table and my range is for lookup is 9 to 99. what will be the row count in output table? 
- 
                    Design a jobI have table(Emp) with the columns Eid,Ename,Sal,month(sal),year(sal) and DOB (say 15th-Jan-1981). 
 Design a job such that the output displays Ename,year(sal),tot(sal) and current age i.e. For Ex: 18 yrs
- 
                    Source file and 3 output tables records problemSuppose i am having a source file and 3 output tables and I want first row to be written to first table second row to second table, third row to third table likewise how can we achieve this using datastage without using partitioning? 
- 
                    How to identify updated records in datastage.How can we identify updated records in datastage? Only updated records without having any row-id and date column available. 
- 
                    What is slowly changing dimension(SCD)what is slowly changing dimension(SCD)? How do we rectify it in datastage. 
- 
                    How to read a comma delimiter file in sequential file stage?How we read comma delimiter file in sequential file stage and how we can remove the header and footer from a comma delimiter file? 
- 
                    Datastage jobi have a sequence of job in DataStage which is taking more than 4 hrs which is supposed to complete in less than 1 hr 
 so what could be the possibilities to take much longer time than expected?
- 
                    
- 
                    Getting files In datastageHow to get a files from different servers to one server in datastage by using unix command? 
- 
                    
- 
                    How to get the last day of the current month?I have explored all the available functions in the transformer stage, but could not find the exact function to get the last day of the current month. Can you please show me which function is available for this logic. 
- 
                    What are Routines and where/how are they written and have you written any routines before?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: 1) Transform functions 2) Before-after job subroutines 3) Job Control routines 
- 
                    
- 
                    Purpose of using user defined environment variables and parameter setsWhat is the purpose of using user defined environment variables and parameter sets. I m little bit confused. Could any one explain me in detail.? 
DataStage Interview Questions

 
  
  
  
		
Ans