Professional Documents
Culture Documents
DataStageSenarios 1 PDF
DataStageSenarios 1 PDF
Exe 1: -
Exe 2: -
NUMBE LOCATIO
FNAME LNAME R N
Suresh Manchi 12 UK
Kiran Maru 13 CHINA
Naresh Krishna 14 USA
Suresh Manchi 15 INDIA
Kiran Maru 11 CHINA
i) Separate the both Unique records and duplicates each different files by Using Sort stage.
ii) Separate the both Unique records and duplicates each different files by Using Aggregator
stage.
Exe 3: - Calculate cumulative salary using stage variables concept for Employee data file below.
Exe 4: - Loading the employee data(exe3 file data) into excel file.
Exe 5: - Create a Job sequence (Mode- Sequential) as the below order Exe1, Exe2, Exe3 and Exe4
And apply the file watcher stage before starting on the stage.
Exe-6 (Display the Details of Employees of working in 10th Department)
Using the following processing Stages get the Output of who are working in the 10th
Department,
a) Transformer Stage
b) Filter Stage
c) Switch Stage
Output is a Sequential File.
Exe-7 (Display the Details of Employees of working in 10th Department and other
department records send into Rejected File)
a) Transformer Stage b) Filter Stage and c) Switch Stage Output is a Sequential File.
Exe-8 Use Join stages to join the following two inputs file using Deptno as key column
and try following types of join operation.
a. Inner join
b. Left-outer join
c. Right-outer join
d. Full-outer join
Input Files
Dept file
Employee file
a) Continue
b) Drop
c) Reject
b) Fail
Exe-10 Using the Merge Stage Join the Following two Tables
10th Deptno in one Output File, 20th Deptno in one Output File, 30th Deptno in one Output
File, Rest of Department in Send it into Reject File.
Using the following processing Stages get the Output of who are working in the 10th
Department and other department records send into Rejected File
a) Transformer Stage
b) Filter Stage
c) Switch Stage
Exe-12 Using the Aggregator Stage Calculate maxsal, Minsal, Avgsal, Sumsal by
Department wise and Job wise. (Input File is Employee File)
Exe-13 Display the Unique records (Unique Jobs) in above File by using the following
processing Stages
DaySal=Esal/30
Exe-15 Generate the Surrogate keys for the Employee file by Using the Stage Variable
using transformer Stage.
Exe-16 Using the Stage Variable Concatenate two String fields for the following Input
file
Input File
Output File
Exe-17 Using the Modify stage performs the following operation for Employee File.
a) Keep
b) Drop
c) Column Name Change (New_Sal=Esal)
d) Datatype Change (Convert into Esal into Char Datatype)
e) Null Handling
Exe-22 Display the OutPut in target as Output File by Using the Following Input File.
Exe-23 Develop a Job using Column Generator Stage and Row generator Stage
For the below file Generate Sno Column in the Target Output Files,
Exe -25 Create Batch using the Client Director, compile and Run the Batch with no
errors (Hint: Batch = more than 3 Jobs up to N Jobs)
Exe -26 Add the Scheduling the Batch and Job on Specific time and day using the Client
tool Director.
Sequential File
Exe 27 Input file “file1” (Tab Delimited file)
ID Name
1 Arun
2 Balu
3 Ching Chang
4 Rum Tum
ID Name
1 Arun
2 Balu
3 Chandra
abcdefghijklmnopqrstuvwxyz
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Exe 31 Use Filter stage to split the input data as specified below,
a. Left-outer join
b. Right-outer join
c. Full-outer join
d. Inner Join
infile162.txt
ID Dept
2 CSE
3 ECE
4 MECH
Exe 33 Use Lookup stage and above question’s (No. 16) input file and try following
Lookup options for unmatched records,
e. Continue
f. Drop
g. Reject
h. Fail
b. Use one Merge stage and join all the input data.
infile182.txt
ID Dept
2 CSE
3 ECE
4 MECH
infile183.txt
ID Sem-1
2 Pass
1 Fail
infile184.txt
ID Sem-2
3 Fail
4 Pass