We frequently use #pragma convert(codepage) / convert(pop) for this.

Works well, but note that even though it isn't clear in the documentation,
you can't use it to wrap #defines

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Mon, Nov 3, 2014 at 12:01 PM, John McKown <[email protected]>
wrote:

> Gil,
>
> Thanks for the URL. I totally misunderstood what that #pragma did. For some
> reason, I thought it set the CCSID for the subsequent input source file.
> Just stupid, I guess.
>
> On Mon, Nov 3, 2014 at 11:47 AM, Paul Gilmartin <
> [email protected]> wrote:
>
> > On Mon, 3 Nov 2014 12:16:49 -0500, Denis Gäbler wrote:
> >
> > you can do that very easily, with pragma convert in z/OS and z/VM:
> >
> >
> >
> http://www-01.ibm.com/support/knowledgecenter/SSB27U_6.2.0/com.ibm.zos.r12.cbclx01/zos_pragma_convert.htm
> >
> > Or, equivalently:
> >
> >
> >
> http://pic.dhe.ibm.com/infocenter/zos/v2r1/topic/com.ibm.zos.v2r1.cbclx01/zos_pragma_convert.htm
> >
> > ... where I read:
> >
> >     The following are not converted:
> >
> >         A string or character constant specified in hexadecimal or octal
> > escape sequence format
> >         (because it represents the value of the desired character on
> > output).
> >
> > That could be an adverse design choice.  For example in ported source
> > code if the programmer has specified 0xA0, the intent was more likely
> > &nbsp; than the EBCDIC 0xA0 code point.
> >
> > -- gil
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
> >
>
>
>
> --
> The temperature of the aqueous content of an unremittingly ogled
> culinary vessel will not achieve 100 degrees on the Celsius scale.
>
> Maranatha! <><
> John McKown
>
> ----------------------------------------------------------------------
> 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

Reply via email to