On 2019-03-20 1:21 PM, Stephen Piland wrote:
I'm trying to add several smaller IFS files together into one. I build the first one, close it, and it looks good on IFS with CCSID 1208. Next, I build the 2nd IFS file and it looks good one IFS as CCSID 1208.
...

By the way, you should be able to use the QSH "cat" command to append all the other files to the first file. This will append files f2.txt, f3.txt, and f4.txt to the end of f1.txt. Note ">>" to append.
qsh cmd('cat f2.txt f3.txt f4.txt >> f1.txt')

I thought it would be nice to create one new file from all the old files. Note ">" to clear the file before writing data.
qsh cmd('cat f1.txt f2.txt f3.txt f4.txt > f5.txt')

But as far as I can tell, when you just use the "cat" command to create a new file from several files, the CCSID of the new file is your job CCSID. For me, this only works if f5.txt already exists with the right CCSID.

Hopefully, there is some expert here who knows what flags to add to the "cat" command to allow specifying the CCSID of the target file if it doesn't already exist.


This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].