Re: EBCDIC to ASCII OPTCD=Q? (JCL)



In article <cu70h2pcmcnk927bhj7goibd970pnubioj@xxxxxxx>,
Howard Brazee <howard@xxxxxxxxxx> wrote:

Once again, thanks to all... but I can't even get a tape mounted, the
SMC0043 tells me that the unit cannot be allocated.

DD

[top post, nothing new below]

That is correct. This is from the "Macro Instrucionns for Data Sets"
manual; see the last paragraph and note that LABEL=(,AL) assumes
OPTCD=Q

Q
requests conversion of the tape records between what is stored on
tape and what is supplied from/to the problem program. For input
requests, conversion is done after the data is read from tape. For
output requests, conversion is done just before the record is
written to tape.

The Q option implies that the character representation of the data
on tape differs from that seen by the problem program. Data
management converts records according to one of the following
techniques:

O CCSID Conversion

If CCSIDs are supplied from any source for ISO/ANSI V4 tapes,
records are converted between the CCSID which represents the
data on tape and the CCSID as seen by the problem program. You
can also prevent conversion by supplying a special CCSID.

O Default Character Conversion

If you are using non-ISO/ANSI V4 tapes or if CCSIDs are not
supplied by any source, data management converts the records
between ASCII code (which represents the data on tape) to
EBCDIC code (which is seen by the problem program) using
specific tables defined for this default character conversion.


Refer to z/OS DFSMS: Using Data Sets, SC26-7410, for a complete
description of CCSID conversion and default character conversion.

Refer to z/OS DFSMS: Using Magnetic Tapes for more information
about ISO/ANSI labels.

Q is supported only for a magnetic tape that does not have IBM
standard labels. If the tape has ISO/ANSI/FIPS labels
(LABEL=(,AL)), the system assumes OPTCD=Q.

--
Bruce A. Black
===============================
IIRC, even if you code LABEL=(1,NL), OPEN checks to see if a label
does in
fact exist. And, if it does, OPEN will do some verfication of the
content, which could still lead to problems. It's been a long time
since
I messed with tape labels, so I could be mistaken.



John Kington <john.kington@xxxxxxxxxxxxx>
========================
If you say NL but the tape that is mounted has labels (standard or
ANSI)
the mount is rejected

--
Bruce A. Black
======================


.



Relevant Pages

  • Re: Tape stacking, media conversion and data archival past end of mainframe
    ... I have certainly used the BrightStor CA-1 Tape Management Copycat Utility ... type while your target output device is something of your choice. ... so just a case of connecting up to the IBM Mainframe. ... data conversion from one platform to another, as the data created on one ...
    (bit.listserv.ibm-main)
  • Re: Convert 3490E Tapes to CD or DVD
    ... decimalbut wouldn't accomplish the ASCII conversion. ... possibility of getting a SCSI-attached 3490 tape and doing it in-house ... binary transfer and worry about translating it to ASCII (with ...
    (bit.listserv.ibm-main)
  • Re: EBCDIC to ASCII OPTCD=Q? (JCL)
    ... tape and what is supplied from/to the problem program. ... conversion is done after the data is read from tape. ... data on tape and the CCSID as seen by the problem program. ...
    (comp.lang.cobol)
  • Re: Weather Unrecovery; Photo Recovery
    ... Not a Lent thing, more along the same lines as yourself: ... The general schedule for these things is: Site sends me a tape ... there's a client missing from the conversion!" ... This footnote here to temporarily prevent premature Internet ...
    (alt.sysadmin.recovery)
  • Re: EBCDIC to ASCII OPTCD=Q? (JCL)
    ... requests conversion of the tape records between what is stored on tape and what is supplied from/to the problem program. ... conversion is done after the data is read from tape. ... O CCSID Conversion If CCSIDs are supplied from any source for ISO/ANSI V4 tapes, records are converted between the CCSID which represents the data on tape and the CCSID as seen by the problem program. ... O Default Character Conversion If you are using non-ISO/ANSI V4 tapes or if CCSIDs are not supplied by any source, data management converts the records between ASCII code to EBCDIC code using specific tables defined for this default character conversion. ...
    (bit.listserv.ibm-main)