Front page | perl.perl5.porters |
Postings from July 2016
ASCII support in z/OS
From:
Yaroslav Kuzmin
Date:
July 26, 2016 11:43
Subject:
ASCII support in z/OS
Message ID:
1469533413.16923.39.camel@rocketsoftware.com
Hi All,
IBM offers all tools build with 'ASCII support' for USS z/OS.
Overview:
Enhanced ASCII support is a collection of services and options for dealing with the EBCDIC/ASCII
problem. :
Files can be "tagged" (using chtag ) to indicate whether or not they are pure text files, and if
they are, the character set (CCSID) used to encode them. The typical values will be "1047" (for ibm-
1047) or "819" (for iso8859-1).
C/C++ programs can be compiled such that all the character and string constants in the program
are compiled into ASCII (or other code page, for that matter), rather than EBCDIC.
C/C++ programs are marked with a "program CCSID" that indicates the character set the program
uses internally. Note that all programs have a program CCSID,
Given a tagged file, data can automatically be converted from one code page to another when the
file is read or written.
Documentation:
Unix System Services Planning
Chapter 11 (Converting files between code pages), section "Using Enhanced ASCII" (http://www
.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.bpxb200/uenha.htm), provides an
overview of how to setup and use Enhanced ASCII support.
Unix System Services (USS z/OS) Command Reference contains details on these commands:
chtag - query/change the file type (binary/text) and codeset information for a file.
ls - the -T flag can be used to display file tag information.
pax - interchange portable archives. pax can record (on archive) and honor (on restore) file
tag information.
tar - similar to pax. z/OS tar supports processing of file tags.
XL C/C++ Programming Guide
Chapter 11 (Performing z/OS UNIX file system I/O operations), section "File tagging and
conversion" (http://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.cbcpx01/cbc
1p273.htm), discusses file tagging, the notion of a program's CCSID, and various facilities related
to enhanced ASCII support
Chapter 32 "Using environment variables" (http://www.ibm.com/support/knowledgecenter/en/SSLT
BW_2.2.0/com.ibm.zos.v2r2.cbcpx01/setenv.htm) has very good information and descriptions of specific
environment variables (see below).
XL C/C++ Runtime Library Reference
Appendix B (Function support table), section "Enhanced ASCII support" (http://www.ibm.com/su
pport/knowledgecenter/en/SSLTBW_2.2.0/com.ibm.zos.v2r2.bpxbd00/enhascii.htm) has a good discussion
of the feature test macros defined for various levels of enhanced ASCII support and a large table
describing the level of support for enhanced ASCII for nearly all runtime functions.
z/OS Language Environment Programming Reference
Chapter 2 (Using the Language Environment runtime options) describes the FILETAG runtime
option
z/OS Language Environment Programming Guide
This manual describes how to control runtime options using environment variables (_CEE_RUNOPTS)
and compile-time pragmas (#pragma runopts).
UNIX System Services z/OS Version 1 Release 7 Implementation Redbook, Chapters 10.13 (Enhanced
ASCII functionality), 10.14 (Automatic conversion) and 10.15 (File tagging) are good, but old
(2006).
If all tools will work with ASCII support system, the z/OS can use the ISO-8859-1 character set
(ASCII) instead of IBM-1047 (EBCDIC) and is VERY VERY GOOD.
We are now build bash-4.3 and git-2.4.0 with ASCII support , we test these tools. But to complete
the work git needed perl c ASCII support. And so we want to build perl with ASCII support.
So :
1 how to make a branch hints/os390-ascii.sh or in file hints/os390.sh ?
2 Should to support two branches perl-zOS-ebcdic и perl-zOS-ascii or only support one perl-zOS-
ascii ?
3 I have the first progress for version perl-zOS-ascii.
--
Regards,
Yaroslav Kuzmin
Developer C/C++ ,z/OS , Linux
3 Zhukovskiy Street · Miass, Chelyabinsk region 456318 · Russia
Tel: +7.922.2.38.33.38
Email: YKuzmin@rocketsoftware.com
Web: www.rocketsoftware.com
================================
Rocket Software, Inc. and subsidiaries ■ 77 Fourth Avenue, Waltham MA 02451 ■ +1 877.328.2932 ■ +1 781.577.4321
Unsubscribe From Commercial Email – unsubscribe@rocketsoftware.com
Manage Your Subscription Preferences - http://info.rocketsoftware.com/GlobalSubscriptionManagementEmailFooter_SubscriptionCenter.html
Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy
================================
This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you.