-
Dsjob run command in Unix platform
We are using below command in Unix to run a Datastage Job:
dsjob run mode project_name job_name
When we are executing the above command in Unix what exactly it returns? -
Load a date field value from sequencial file to databse table with out using Transformer
I have an input file in below format
Name DOB
------ ------
A 10-05-1990
B 07-12-2000
Q1 -> How we will load the above file data into a target data base table in a simplest method without using Transformer ?
Q2 -> How will load the Date column into 3 splitted columns(DD|MM|YYYY). Like below
Name DOB
------ ------- -
Split the Input Columns into Different Target
I have a source file having 4 columns. How can I store first 2 columns values into one target and the next 2 columns values into another target? Can anyone suggest me here how can I achieve this using Copy stage and without using Copy Stage?
-
Change the Configuration file during Run-time
Can we change the configuration file during run time? If then how?
-
Generate the Occurrence Number in Output File
How to generate the occurrence no in out put file for the respective no of records in input file
I need a count in the target file how many times the same record is available in input file.
INPUT
-----
ID NAME LOC
20 B Y
10 A X
20 B Y
30 C Z
10 A X
10 A X
20 B Y
20 B ... -
Which table will load first - Fact or Dimension Table?
In Data warehouse which table will load first and why? Fact or Dimension?
-
Implement Bulk Collect methodology in Datastage
We are using Bulk Collect methodology in Database to load the bunch of records at a time.How we will implement the same operation in Datastage. If my source having millions of records, I want to load the bunch of records in to target at a time. How?
-
Separate the Records with Special Characters
How will you separate the records with special characters in a column. For example
If suppose the column contains
Name*
&Name
Na*me
$Name
Na$me
I need to separate these records alone. -
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. -
Which Case you will go for star schema and snow flake schema
In your project Which Case you will go for star schema designing and which Case you will go for snow flake schema designing?
-
Project Data Model
Basically which data model do we use in the project?
-
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
-
Generate Surrogate Key in Database
How we will generate Surrogate Key in Database not in Datastage.
-
Store Rejected Record
In join stage how we will store the rejected record in one file?
-
Identify Header, Detail and Trailer Records
Identify Header, Detail and Trailer records in the incoming file and verifying whether trailer count is equal to total number of detail records.
My input is
Header Columnname
Detail row 1
Detail row 2
Detail row 3
Trailer 3
Here I want to see whether total number of detail records is equal to total number of trailer record.
If so proceed... -
I would like to have output as like this 101 90 next line 102 65 next line 102 55 etc...
11. Find The Output With out PIVOTE stage
Source File: Target
SNO, MATHS, PHYSICS, CHEMISTRY SNO, MARKS
101, 70, 80, 90 101, 70
102, 65, 55, 75 101, 80
101, 90
102, 65
102, 55
102, 75 -
How we can implement Bulk Collect methodology in Datastage
I have faced an interview question recently.
In database we are using Bulk Collect concept to load the bunch of records ata time.
How we will achieve the same process in Datastage ?
Can we use any paticular stage or any other methodology we can implement.
Can any one help me on this.
Thanks in advance.
Aloka -
Add 10 days to a particular date
How to implement the scenario: Add 10 days to a particular date in Datastage PX
-
Display with Commas
Solve these with suitable logics in datastage
Input is like..
department_no, employee_name
----------------------------
20, R
10, A
10, D
20, P
10, B
10, C
20, Q
20, S
want result like
department_no, employee_list -
Maximum score details among 10 records using transformer stage
I have 5 records in student table. I want maximum score student details. How to do this with transformer stage.
Example:Input::: Student table
Sno smarks
1 50
2 45
3 34
4 50
5 33
I want output like this::
sno smarks
1 50
4 50
DataStage Interview Questions
Ans