concatenate of three inut files
Posted: Tue Nov 09, 2010 1:11 am
Hi ,
I have requirement that I need to concate 3 files in the job.
I have written a copy command in after job routine to do the below task.
copy header.txt+detail.txt+trailer.txt Newfile.txt this works out sucessfully .
But I have other requirement when the user sends the empty file and I need t generate only header and trailer .
So I thought of creating a dummy trailer file and execute a batch job to check if the detail.txt is empty then it should pick template_trailer.txt.
Need help on how to write the batch code to do above task.
Please suggest
I have requirement that I need to concate 3 files in the job.
I have written a copy command in after job routine to do the below task.
copy header.txt+detail.txt+trailer.txt Newfile.txt this works out sucessfully .
But I have other requirement when the user sends the empty file and I need t generate only header and trailer .
So I thought of creating a dummy trailer file and execute a batch job to check if the detail.txt is empty then it should pick template_trailer.txt.
Need help on how to write the batch code to do above task.
Please suggest