Follow-up question.. how do I check the z/OS codepage? Looks like 'chcp -q' can answer this but I'd need to login via rlogin or telnet, both of which are not available!
– Vignesh Mainframe Infrastructure -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Sankaranarayanan, Vignesh Sent: 07 September 2018 09:19 To: [email protected] Subject: Re: [EXTERNAL] Re: Co:Z question And yes, on connecting to z/OS with "1047 Open Edition", they indeed show up correctly... as [ ] : ZosSettings[I]: Transfer options: clientcp=UTF-8,mode=text,servercp=UTF-8,trim Translator[F]: -> Translator(IBM-1047, UTF-8, , 0, 0) I've been living under a codepage rock all this while... never thought it would affect me, an infra person. Always thought it was a thing that app people have to worry about! Makes me worry about whether I should change the codepage default for HOD now !! – Vignesh Mainframe Infrastructure -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Tony Harminc Sent: 06 September 2018 17:27 To: [email protected] Subject: [EXTERNAL] Re: Co:Z question On 6 September 2018 at 09:13, Sankaranarayanan, Vignesh <[email protected]> wrote: > On mainframe, a dataset has £ (the pound symbol) in multiple records. > I'm transferring to a RHEL box with lzopts="mode=text". > The £ shows up as a $. > > I ran the COZ job with the following in the first //SFTPIN input: > export COZ_LOG="T,Translator=F" > > I see these relevant lines in the log: > ZosSettingsÝI¨: Transfer options: > clientcp=IBM-1047,mode=text,servercp=ISO8859-1,trim > TranslatorÝF¨: -> Translator(IBM-1047, ISO8859-1, , 0, > 0) Vignesh, Your data is probably not encoded in CP 1047, but more likely the UK CECP 285. CP 1047 has the dollar sign at 5B, the pound sterling sign at B1, and the cent sign at 4A. CP 285 has sterling at 5B, dollar at 4A, and cent at B0. But be careful - you are very likely to have a de facto mix of encodings in various data, depending on where it came from. Changing your translation from 1047 to 285 may break something else. (For example, your log lines quoted above show dodgy characters right after ZosSettings and Translator. What characters do you see there when you look at them on z/OS? Are they perhaps square brackets?) Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN MARKSANDSPENCER.COM ________________________________ Unless otherwise stated above: Marks and Spencer plc Registered Office: Waterside House 35 North Wharf Road London W2 1NW Registered No. 214436 in England and Wales. Telephone (020) 7935 4422 Facsimile (020) 7487 2670 www.marksandspencer.com Please note that electronic mail may be monitored. This e-mail is confidential. If you received it by mistake, please let us know and then delete it from your system; you should not copy, disclose, or distribute its contents to anyone nor act in reliance on this e-mail, as this is prohibited and may be unlawful. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
