Hi Gil,

So what would be ideal is for me to rup chcp -q to find the platform's EBCDIC 
codepage number, and ASCII codepage number, as is described in the example, in 
that link.
It says I'll need to setup rlogin or telnet (to OMVS)... is there a simple way 
of doing either of these?

– Vignesh
Mainframe Infrastructure

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Paul Gilmartin
Sent: 07 September 2018 20:11
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: [EXTERNAL] Re: Co:Z question

On Fri, 7 Sep 2018 14:53:59 +0000, Seymour J Metz wrote:

>> Z/OS does not have a code page.
>
>But it does have *many* code pages and it does have a chcp command.
>
A z/OS UNIX command:
    
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa500/ip1.htm

Format

    chcp [–r | –q]
    chcp [–s] [–a ASCII_cp] [–e EBCDIC_cp]

Description

chcp sets, resets, or queries the current ASCII/EBCDIC code conversion in 
effect for the controlling terminal. Use it when the terminal requires ASCII 
data and the shell application uses EBCDIC. Do not use chcp if you are logged 
on through the TSO/E OMVS command. The _BPX_TERMPATH environment variable 
enables shell scripts to tell if the user logged on from TSO, rather from 
rlogin or telnet.
    ...

For a list of code pages supported by the shell, see z/OS XL C/C++ Programming 
Guide.
    
https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.cbcpx01/toc.htm?view=kc

Which section?  It's a thick document.

...  OK.  It says you're not supposed to use it from a 3270 session.  It 
doesn't say what happens if you try.  And the OP has already said he's 
uncomfortable with the restriction.

Does it cause automatic tagging of files created with a code page in effect?

Does it affect behavior of classic data sets?  E.g.:
    cp "//'my.data.set(member)'" /dev/fd/1

There's an ISPF command that tells the CCSID in use by a TSO/ISPF session.
That's set by the LOGON handshaking protocol.

Does it have any (useful) effect to code in a (perhaps custom) LOGON PROC:
    //TSO  EXEC PGM=IKJEFT01,CCSID=...
Why not?

(Some) terminal emulators let you set the desktop code page and the host code 
page (the one reported by ISPF) independently.  I have had good success with 
xterm, setting the desktop code page to UTF-8 and using various host code 
pages.  ISPF 3.17 nicely displays tagged UNIX files, even UTF-8, as long as all 
characters exist in the terminal's configured host code page.  Characters not 
so available display as attribute bytes.

I don't believe TSO/ISPF supports 1208 as a terminal code page.  I don't know 
about other MBCS code pages.

I hate EBCDIC!

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to