-
Datastage job scenario question
My input has a unique column-id with the values 10,20,30.....how can i get first record in one o/p file,last record in another o/p file and rest of the records in 3rd o/p file?
-
Datastage Job Scenario question
input file A contains12345678910input file B contains6789101112131415Output file X contains12345Output file y contains678910Output file z contains1112131415How can we do in this in a single ds job in px ?....could you please give me the logic to implement ???
-
Datastage real time scenario
I have source like this
a,b,c,1,2,3 ( All this in one column)
I wanna target following below
a,b,c,1 ( Ist row)
a,b,c,2 (2nd row)
a,b,c,3 (3rd row)
Thanks in advance.
-
Datastage Real time scenario
source table
name
A
A
B
B
B
C
C
D
In source table data like this
but I want traget table like this
name count
A 1
A 2
B 1
B 2
B 3
C 1
C 2
D 1
pls any one one solve this........ -
How to convert multiple rows into single row in datastage
Hi,
Can you please solve this in datastage..
my input is
name,city
johnson,newyork
johnson,mumbai
johnson,delhi
want output as
name,city1,city2,city3
johnson,newyork,mumbai,delhi
pls explain with steps
thanking in advance... -
Sequential file with Duplicate Records
A sequential file has 8 records with one column, below are the values in the column separated by space,1 1 2 2 3 4 5 6In a parallel job after reading the sequential file 2 more sequential files should be created, one with duplicate records and the other without duplicates.File 1 records separated by space: 1 1 2 2File 2 records separated by space: 3 4 5 6How will you do it
-
How to Seperate Repetating & non-Repetating data.
I have data in Table as
ID
1
2
3
1
4
3
3
5
6
6
7
Now I want to have Output as repeatating records in one table & non-repeatating in another table
Table 1 :
Id
2
4
5
7
Table 2:
ID
1
1
3
3
3
6
6
-
Dataset stage and sequential file stage
what is the difference between dataset stage and sequential file stage? even one more to be added here, What is the difference between dataset stage and fileset stage?
-
How to handle Date convertions in Datastage? Convert a mm/dd/yyyy format to yyyy-dd-mm?
We use a) "Iconv" function - Internal Convertion. b) "Oconv" function - External Convertion. Function to convert mm/dd/yyyy format to yyyy-dd-mm is Oconv(Iconv(Filedname,"D/MDY[2,2,4]"),"D-MDY[2,2,4]")
-
Job sequencing
I have 3 jobs A,B & C, which are dependent each other, I want to run A & C jobs daily and B job run only on Sunday. How can I do it?
-
-
Join and Lookup Stage
If you have a huge volume of data to be referenced, which stage will you use? Join or Lookup stage? Why
-
Remove Leading Zero
How to remove leading zeros in data and transform data to target?
-
Datastage job
i 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? -
Scenario in datastage
input is
cola
1
2
3
this should be populated at the output as
cola
1
2 2
3 3 3 -
Giving occurances
can anyone pls solve in datastage.........
source column is..
A
A
B
B
B
C
C
D
........want output columns(2 cols) as.........
A 1
A 2
B 1
B 2
B 3
C 1
C 2
D 1
THANX IN ADVANCE. -
How did you handle an 'Aborted' sequencer?
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.
-
DataStage - delete header and footer on the source sequential
How do you you delete header and footer on the source sequential file and how do you create header and footer on target sequential file using datastage?
-
Delete Dataset
How to Delete Dataset in Datastage Parallel Jobs?
-
Single column with multiple rows should be converted into single row with commas
Can any one help....
Source is.....
a
b
c
d
want target as.....
a,b,c,d
thanks in advance
DataStage Interview Questions
Ans