HOW TO JOIN THE 2 FLAT FILES WITHOUT USING JOINER AND
LOOKUP?
Answers were Sorted based on User's Feedback
Answer / jz
If Two Flat files having same coll then go for Union t/r to
join.
Is This Answer Correct ? | 27 Yes | 10 No |
Answer / amedela chandra sekhar
If two flat files are having same structure then we can join
by using Union transformation.
Chandu
Is This Answer Correct ? | 16 Yes | 1 No |
Answer / ajay konidena
No we can't join two flat file with out using joiner ,look
up
Is This Answer Correct ? | 9 Yes | 3 No |
Answer / sarthak
With the help of command task...
cd dir_path
cat 1st_filename 2nd_filename >> 3rd_filename
Then,
create 1 flatfile and connect it to target.
In session property,
give the filename: 3rd_filename and its path
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / rahul patil
All the above approaches are not correct because question was to join two flat files... if we use indirect file or unix command or joiner trns, we could only union two files but not join.
If we have file1 --- 100 records and
file2 --- 100 records then through above approaches we would have only 200 records.
But a join without join condition would return cartesian product and in our case count should be 10000.
Rahul Patil
DWHKID
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / tulasi pavani.k
If two flat files are of same structure we can join by
creating one list file and by writing the the names of those
two flat files in one text file.
source file directory:c:/order.txt
source file type:indirect
Is This Answer Correct ? | 4 Yes | 3 No |
Answer / murali udayagiri
Use join UNIX command in pre-session command for joining
both the files and write to a file. Use single SQ trans in
mapping to read that joined flat file data.
Thanks,
Murali Udayagiri
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / avru.bal
we can join the 2 flat files by using filerepsitory..save
both files in one directory gve the path name c:\.txt and
provide default type=oracle then apply,
in session properties provide
source file directory:c:/txt
source file type:indirect
provide target connection..so that we can join the both
files without using joiner n lookup
Is This Answer Correct ? | 2 Yes | 8 No |
Answer / sri
SORRY GUYS,BY MISTAKE I POST THE WRONG ANSWER.MAY BE I THINK
INDIRECT METHOD IS CORRECT ONE TO ACHIEVE THIS.
Is This Answer Correct ? | 6 Yes | 16 No |
Answer / senthil
USE SOURCE QUALIFIER WHILE MAPPING CREATED ...
Is This Answer Correct ? | 1 Yes | 20 No |
what is the process of target load planing?
What do you mean by channel change?
How do you remove duplicate records in informatica? And how many ways are there to do it?
Separate from a database, an information bazaar, and an information stockroom?
Different qualification between a related rotate toward the sky and isolates look upward?
In informatica workflow manager, how many repositories can be created?
How do we eliminate duplicate records in a flat file without using Sorter and Aggregator?
how can u connect client to ur informatica sever iff server is located at different place( not local to the client)
What is exact use of 'Online' and 'Offline' server connect Options while defining Work flow in Work flow ?
How can we get multiple output values using an unconnected lookup transformation?
CANNOT USE PARAMETER FILE! Hi all, I am trying to use parameter file for my workflow. This could help me to filter records where CITY = 'Portland' Following is what I have done: **in Designer - create new parameter : $$PARA_FIL, Parameter, String, IsExprVar=TRUE, Initial value = [empty] - Source Qualifier/ Properties/Source Filter: CUSTOMERS.CITY='$$PARA_FIL' **Create Parameter file: C:\Informatica\PowerCenter8.6.0 \server\infa_shared\BWParam\DynamicParamTest.txt $$PARA_FIL='Portland' **Configure workflow to use the parameter file: Edit Workflow/Properties/Parameter Filename: C:\Informatica\PowerCenter8.6.0 \server\infa_shared\BWParam\DynamicParamTest.txt I also configured directory of parameter file for session task. However, I just got this in the session log: [SQ_CUSTOMERS] SQL Query [SELECT CUSTOMERS.CUSTOMER_ID FROM CUSTOMERS WHERE CUSTOMERS.CITY='$$PARA_FIL'] No record has been loaded to target. It seems that the parameter file has not been read. I cannot understand the reason why. Could any of you kindly suggest me anything? Thanks
How to load duplicate records in to a target table which has a primary key?