Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
edmundreinhardt opened this issue Jan 3, 2025 · 0 comments
Open

Comments

@edmundreinhardt
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant