Skip to content

Support TGTCCSID for CL compilers for at least V7R4 and following #357

@edmundreinhardt

Description

@edmundreinhardt

The CL compilers finally support TGTCCSID as of V7R4.
it would be nice if we could use this in BOB. But it would require a backwards compatible use of the current heuristic for V7R3

A new parameter TGTCCSID is added to CL commands CRTBNDCL, CRTCLMOD and CRTCMD in 7.4 and 7.5 PTFs.
SJ03036 on 7.5
SJ03195 on 7.4
We plan to approve the PTFs soon.

The description of the problem that is fixed (included in PTF cover letter) is:

DESCRIPTION OF PROBLEM FIXED FOR KNOWN ISSUE DT418562 :

A new command parameter TGTCCSID is added to CRTBNDCL, CRTCLMOD,
and CRTCMD, to control the CCSID used to read the source.

These commands normally read the source files in the CCSID of
the job. The TGTCCSID parameter allows you to specify the CCSID
with which the compiler will read the source files for the
compile.

  • TGTCCSID(*JOB): use the job CCSID (this is the default)
  • TGTCCSID(*SRC): use the CCSID of the source file, or the
    EBCDIC CCSID related to the ASCII CCSID of an IFS source file
  • TGTCCSID(number): use a specific EBCDIC CCSID such as
    TGTCCSID(37) or TGTCCSID(5035)

For CRTBNDCL and CRTCLMOD, if the source has an INCLUDE
statement, the included source is also read with the same CCSID
as the primary source is being read.

Specifying TGTCCSID is especially useful when the CCSID of the
data in the source is not the same as the job CCSID.

  • When the source is Unicode, you must specify the TGTCCSID
    parameter with either *JOB or an EBCDIC CCSID.
  • When the source is in a source physical file, you can specify
    TGTCCSID(*SRC) to avoid changing your job CCSID to match the
    CCSID of the source.

CORRECTION FOR KNOWN ISSUE DT418562 :

The CRTBNDCL, CRTCLMOD, and CRTCMD commands are enhanced with a
new TGTCCSID parameter.

This new feature will also be available in 7.6, which is planned to be released this year.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions