GeekInterview.com
Series: Subject: Topic:
Question: 5 of 75

Informatica: if flat file name varies day by day ...

If we are using flat file in our loading, and flat file name change daily so how we handle this without changing file name manually daily? for example: like file name is changing depend on date so what should I do? pls help
Asked by: Interview Candidate | Asked on: Nov 16th, 2011
Showing Answers 1 - 4 of 4 Answers
Ashish

Answered On : Nov 20th, 2011

You can use Informatica File List option to get the dynamic file names. You also need to use shell scripts to get this done.

  
Login to rate this answer.
Sumithav29

Answered On : Nov 30th, 2011

View all answers by Sumithav29

In Session level, we can select Source File Type as Indirect . When you select Indirect, the Integration Service finds the file list and reads each listed file when it runs the session. So inside the file list we can mention the file name that is changing frequently.

  
Login to rate this answer.
Suseendiran

Answered On : Dec 7th, 2011

You create a shell script to load all the file names in a list file in the server location and through informatica as sumitha said, you can use the indirect file reading method to process the dynamic input files.

Thanks,
Susee

  
Login to rate this answer.
SHIV

Answered On : Dec 28th, 2011

You can use Informatica File List option in target to get the dynamic file names along with the transaction control transformation so that you can create dynamic filenames based on some transaction properties.....




  
Login to rate this answer.
Charu

Answered On : Jan 24th, 2012

Use the indirect filelist option at informatica session.
say the filelist name is daily_file.txt

put a shell script daily_filename.sh at the pre-session command.

The content of daily_filename.sh is as:

filename_stagnant=ABC
filename_new=$filename_stagnant`TZ=CST+24 date +%Y%m%d`
echo $filename_new >daily_file.txt

__________________

You can modify the filename_stagnant and date formatting as per your requirement or project conventions.

Regards,
Charu.

Yes  1 User has rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.