>> I just wanted to fold text fields to uppercase. It works as it should, with >> the exception for national characters.
Radoslaw, TRAN=LTOU Translates lowercase EBCDIC letters(that is, a-z) to uppercase EBCDIC letters (that is, A - Z). Other characters are not changed. Here is the documentation of it (Search for LTOU on this page) https://www.ibm.com/docs/en/zos/2.4.0?topic=statements-outfil-control or this one https://www.ibm.com/docs/en/zos/2.4.0?topic=fields-translating-uppercase-lowercase-ebcdic-ascii-more ≫ I used LOCALE=PL_pl in DFSPARM DD, but it is accepted by SORT, but not TRAN=LTOU. LOCALE will be applied for SORTING the data and not for TRAN. Since you are SORTING on the first 20 bytes, LOCALE will be applied for it and if you have Polish national characters in there , they will be sorted according to the PL_pl collating sequence. I quickly looked up polish characters in google and out of the 32 alphabets, the ones you need to convert would be the letters with diacritics: the acute accent (kreska; ⟨ć, ń, ó, ś, ź⟩); the overdot (kropka; ⟨ż⟩); the tail or ogonek (⟨ą, ę⟩); and the stroke (⟨ł⟩). ⟨q⟩, ⟨v⟩, and ⟨x⟩. So, you can add a FINDREP for only those characters. OUTREC BUILD=(1,80,TRAN=LTOU) OUTFIL FINDREP=(… Thanks, Kolusu DFSORT Development IBM Corporation ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN