title: how to create an informatica flat file with dynamic name and trailer
body: <p>I am creating a dynamic name flat file in informatica powercenter. I have to accomplish two tasks: create a flat file with timestamp appended to it's name, and also append a trailer having the record count to the flat file. I am able to perform the above two tasks separately but i am not sure how i can accomplish them together. If i create a flat file with timestamp info using informatica file name port and use a unix script in a command task to append the trailer how can i refer to the variable file name in my unix script. I am using the following command to refer to the output file name generated by informatica:</p>
  
  <pre><code>file='ls output_file.txt' 
  </code></pre>
  
  <p>here the name of output file is not variable. I wanted to know how can i call an output file with a variable name in this command or the script itself.Any help is appreciated.</p>
  
  <p>Thanks </p>