<Don Inghram wrote:> >Ok, here's probably a simple question, but the tired brain can't come up >with an answer, so: >Within a command file, I need to merge two datafiles together into a third >file. Normally I would use FCOPY to merge the files but can't figure how to >do that in a command file. Thanks for any clever approaches. Don, I would use the HP supplied program "merge.pub.sys". Any number of files can be merged very quickly with just a few commands and have the resulting file collated simultaneously. e.g. (please note that merge uses the chevron prompt) run merge.pub.sys >input data1, data2, data3....data9 >output newdata >key 10,20 (with the additon of ",desc" the results can be in descending order) >end (lots of merge statistics.....) There are numerous merge examples on the HP LaserRom. Good luck... Eric Sand [log in to unmask]