Just to be clear this is how the data is showing up after the cat command
"FNAME","LNAME""SASA","ACKAR""JAMES","ADAMS""AMY","ADKINS""ERNEST","ADKINS"
This is how it should show up.
"FNAME","LNAME"
"MICHAEL","ALBERT"
"FRANCES","ALDERSON"
"JONATHAN","ALDRIDGE"
And this is what it looks like with the -c parm and the file shows CCSID 819
‚ã+ (á‚Œ‚<+ (á‚Ž‚ë ë ‚Œ‚ ä. ê‚Ž‚¢ (áë‚Œ‚ à (ë‚Ž‚ (ß‚Œ‚ à.ñ+ë‚Ž‚áê+áëè‚Œ‚ à.ñ+ë‚
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John Yeung
Sent: Thursday, December 29, 2016 11:40 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: merging 2 .csv files
Re: Using cat
Yet another approach surrounding the cat command is to use the -c
(binary) option. So
cat -c /pdfflr/pattycsv.csv /pdfflr/pattycsv5.csv > /pdfflr/pattynew.csv
Since it's binary, with no conversion, the data from the two input CSV files should be preserved, byte for byte. The CCSID attribute of the resulting file will most likely be 37, but you can fix that with the CHGATR command (or option 13 from the WRKLNK display).
Please note that CHGATR just changes the metadata for the file; CPY actually changes the data itself (as well as the metadata).
John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
NOTICE: This message, including any attachment, is intended as a confidential and privileged communication. If you have received this message in error, or are not the named recipient(s), please immediately notify the sender and delete this message.
As an Amazon Associate we earn from qualifying purchases.