A wonderful dirty little secret is that ASCII "LF" 0x0A and EBCDIC "NL"
0x15 are both in the non-printable range in both base character sets.
(To be fair, Unix "NL" is a misnomer.)
In the pre-tagging days, I cobbled up code to read a line of text up to
either of those markers.
When the code hit 0x0A it knew there was a line and it was ASCII (and
would either translate or not accordingly).
When the code hit 0x15 it knew there was a line and it was EBCDIC (and
would either translate or not accordingly).
So now I'm having similar trouble to Phil in that files might be
mis-tagged (EBCDIC tagged as "ISO8859-1" or ASCII tagged as "IBM1047").
This autoconvert is a fabulous thing ... where it works right.
-- R; <><
On 8/20/25 1:22 PM, Phil Smith III wrote:
I'm trying to NOT have files that *are* EBCDIC tagged wrong, so FTP works. If I FTP that
"banana" file, I get untranslated EBCDIC. If I say TYPE E, I get an error saying
"Dude, that's ASCII, use ASCII".
This manifested with Python scripts in our automation that did FTPs and got errors saying
"record too long" from larger files, presumably because it was transferring as
ASCII/binary and thus looking for linends that just aren't there in the EBCDIC data.
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Jon
Perryman
Sent: Wednesday, August 20, 2025 1:17 PM
To: [email protected]
Subject: Re: USS file tagging question
On Wed, 20 Aug 2025 12:25:20 -0400, Phil Smith III <[email protected]> wrote:
export _BPXK_AUTOCVT=OFF
chtag -p j*
t ISO8859-1 T=on j.txt
So setting that OFF doesn't seem to help?
I'm still missing something...?
Auto-conversion off defines when automatic file conversion will be bypassed.
This has nothing to do with changing filetag. You can clear the filetag but why
would you want to disable or lock chtag for a session or specific file?
----------------------------------------------------------------------
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
--
-- R; <><
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN