Question:
When we create a target as flat file and source as oracle.. how can i specify first rows as column names in flat files...
Answer:
use a pre sql statement....but this is a hardcoding method...if you change the column names or put in extra columns in the flat file, you will have to change the insert statement Source: CoolInterview.com
You can also achive this by changing the setting in the Informatica Repository manager to display the columns heading. The only disadvantage of this is that it will be applied on all the files that will be generated by This server Source: CoolInterview.com
Answered by: Sachin Kadam | Date:
| Contact Sachin Kadam
IIF(CUME(1)=1, 'col1,col2,col3,col4'||CHR(10)||to_char(col1 ),to_char(col1)) Source: CoolInterview.com
Answered by: preddy | Date: 10/27/2007
| Contact preddy
In Version 8.2 of Informatica , we have in session properties , an option Called " Header options". Use that to get the field names as the first row in the Target Flat file Source: CoolInterview.com
Answered by: kalyan | Date: 11/21/2007
| Contact kalyan
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|