>Hi All,
>
>I have the problem with concatenating the files which I get from REPORT FORM... TO FILE. What I need - to send the output to files, and then give the resulting file to another department to print on the mainframe printer.
> REPORT FORM ...TO FILE ADDITIVE works only with ASCII clause. If I try to concatenate files with the DOS COPY command - the resulting file somehow looses the info
>
>COPY file1.prn + file2.prn myreport.prn
DOS trick - you need to use the /B command line modifier to concatenate binary files - try:
COPY /B file.prn + file2.prn myreport.prn
Another alternative would be to use low-level file I/O to conctenate the output - open the first file for read/write, FSEEK to the end of file and then you could simply read the second file and write it to the tail of the first as you do now.
>with file sizes 51 K and 46 K gives the resulting file of 19 K in size.
>
>For now I try to produce the resulting file with low-level file functions, but it is just overhead.
>Anybody has any ideas?
>
>Nick