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 [email protected] with the message: INFO IBM-MAIN

Reply via email to