title: How to create a file in informatica with header and footer when there is no data coming from source?
body: <p>I have the following scenario.</p>
  
  <p>In informatica, for a process flow which takes 2 input files, do union#1, derive the header and footer and do another union and load the Union#2 output to the target file.</p>
  
  <p>But, even in case of blank file from source., I need to generate the file with header and footer(footer with the count as 2). </p>
  
  <p>Expected content in target file, if we get blank sources:</p>
  
  <p>HYYYYMMDDCODE1315           (header)<br>
  TYYYYMMDDCODE1315 0000002   (trailer with no.of records)</p>
  
  <p>Can anyone please help?</p>
  
  <p>Thanks in Advance!</p>