On Thu, Sep 3, 2015 at 11:36 AM, Paul Gilmartin < [email protected]> wrote:
> On 2015-09-03, at 08:04, John McKown wrote: > > > >> Wny not DD CCSID=...,PATH=...? A field for CCSID is available in the > tag. > > > >Right. A part and parcel of the whole package. Extend BSAM/QSAM to honour > >CCSID on the JOB and DD for any input or output source, not just ASCII > >tapes. > > > I understand the autoconversion of UNIX files is done in the kernel. And > it supports only 819<->1047, but I suspect many programmers dearly > desire IBM-037<->UTF-8. But how much fluff do you want to load on the > kernel. > > And I know of no utility that provides NL<->CRLF conversion. > > Hmmm. If I convert a Windows file to EBCDIC, with iconv or pax, > does the CRLF become CRNL? Ugh! > Yes, it does. so you must do something like: iconv -f iso8859-1 -t ibm-1047 <windows.binary.file | tr -d '\r' >windows.ebcdic.file > > But BSAM/QSAM FILEDATA= ought to support all formats supported > elsewhere, not just BINARY and NL (known as TEXT). > Agreed. But I don't know an _existing_ JCL keyword which can be "perverted" to do this. I wanted to extend CCSID simply for BSAM/QSAM "auto conversion" from one CCSID to another. Not just "ASCII <-> EBCDIC" conversion, but even something like CP-037 <-> IBM-1047. Or any other conversion supported by z/OS Unicode System Services. I didn't intend this to be a z/OS UNIX kernel function, but an access method function within (I think) BSAM itself (which should propagate to QSAM since I think (hope?) that QSAM is just a layer over BSAM). > > -- gil > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
