There are 10 flat files; out of 10 files 1 file is empty. How do you identify the empty file? How can you load all files into targets?



There are 10 flat files; out of 10 files 1 file is empty. How do you identify the empty file? How ca..

Answer / harleen65

if [[ -s $FILE ]] ; then
echo "$FILE has data."
else
echo "$FILE is empty."
fi ;

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Informatica Interview Questions

what is junk dimension

4 Answers   Cap Gemini,


what is mean by grouping of condition column in lookup transformation?

1 Answers  


AT the max how many transformations and mapplets can we use in a mapping ?

1 Answers   Cap Gemini, Cognizant,


I HAVE 10 records in source. I want to store i record in target 1, second record in target 2, third record in target 3, 4 th record again in target 11, 5th again in target 2, 6th again in target3 etc.... how it is possible?

5 Answers   Syntel,


how to load only the first and last record of a flat file into the target?

8 Answers   CTS,






In what scenario we use to improve session performance by pushdown optimization?can any one give example?

2 Answers  


TELL ME ABOUT WORK FLOW SCHEDULING?

3 Answers   TCS,


Where is metadata stored?

0 Answers  


i have 2 mapings for this 2 mapings i want use only one lookupt/r how?

3 Answers   Wipro,


What do you mean by channel change?

0 Answers  


what is unique constraint error ?

2 Answers   TCS,


in staging we are merging the data and remove the inconsistants data that type of situation what u will done and type of functions u can use

0 Answers   TCS,


Categories