× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Fri, Mar 22, 2019 at 11:59 AM Barbara Morris <bmorris@xxxxxxxxxx> wrote:

CHGATR wouldn't work after using 'cat' since data-loss would have
already occurred.

I didn't realize there *was* data loss. I would have thought `cat`
just faithfully reproduces bytes. (Is that Unix thinking when we
actually need Unix-style-but-on-IBM-i thinking?)

But it should work to use 'touch' to create the file,
CHGATR to set the CCSID, then 'cat'.

It had been my understanding that `touch`, *from QSH*, sets the CCSID,
so you would only need to do CHGATR at all if you purposely needed a
different CCSID. And even then, the circumstances would be kind of
weird, because CHGATR doesn't actually change bytes *in* the file,
just metadata. If all the job/system/whatever CCSIDs are properly set
before embarking on this endeavor, I would have thought you shouldn't
need CHGATR at all when working from QSH.

John Y.

As an Amazon Associate we earn from qualifying purchases.

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-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.