> Z/OS does not have a code page. But it does have *many* code pages and it does have a chcp command.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <[email protected]> on behalf of Cameron Conacher <[email protected]> Sent: Friday, September 7, 2018 9:12 AM To: [email protected] Subject: Re: [EXTERNAL] Re: Co:Z question Z/OS does not have a code page. You have data. If you input the data using a green screen emulator you set a mainframe EBCDIC codepage for the session. Then when you add information it uses that code page mapping. When you read information to display in a green screen you just access whatever but patterns are in a file and then map the bit patterns using the code page you specified for your emulator settings This means you “know” which code page to set for the emulator. On the other hand if I send you a file of data you can just save all of my bits and remember which code page I told you I used or you can try to transform the data into one that you always use ( a la green screen). The issue here is I could send say Japanese data and your default is 1047 so the transformation would lose a lot. If you just store all my bits and always remember data from me is Japanese then when you share the specific files or records I send you, you need to tell the receiver what code page you are sending. Make sense? Sent from my iPhone > On Sep 7, 2018, at 8:54 AM, Seymour J Metz <[email protected]> wrote: > > What about OMVS and ISHELL? > > > -- > Shmuel (Seymour J.) Metz > http://mason.gmu.edu/~smetz3 > > ________________________________________ > From: IBM Mainframe Discussion List <[email protected]> on behalf of > Sankaranarayanan, Vignesh <[email protected]> > Sent: Friday, September 7, 2018 8:48 AM > To: [email protected] > Subject: Re: [EXTERNAL] Re: Co:Z question > > 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 > > http://secure-web.cisco.com/13md6rkC_Y_NnmbTdtecCJav-DLNxVePDEypAYSMBcWaXDSTCqh6hNDC6PP9Ux9rTnLk8WMhVx2o5xkafzYvuRwNrIDY0QzbAqjerFECsNpKWE_9Ir1HccLYhMPxoN3enzT0yVTNrApluXAwYZvAKTTavPAiZXQt_RSSv_txwEF2pV7Q72qdLrpI61s-81cNgIgS-hr3hnzdhQcXymd-wSAi0gmn1HJQq1daNfT9JXfM-NDcJRfboJkGUtU6rRjr5J2Gvy7qcivUJcPcZoDDJ7CZXd2jqv4gBxwl0aLfrcwTNQEMDkG7cHzd3mWsIyPtrDKx0781drsSXPXsyVOh6EXDzGYxlsAE3ea9_BYh9d6zOrjTiYkwaNkKea_rQpyDuKU37vsfK_AH_bY-sQWiLyTE7RrvabtnQozFv0TGMYfFKRSMMsdzIFg_MJwAL6vv1/http%3A%2F%2Fwww.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 > > ---------------------------------------------------------------------- > 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 ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
