View previous topic :: View next topic
|
Author |
Message |
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1329 Location: Bamberg, Germany
|
|
|
|
Hello *,
maybe there is one of the early adopters auf z/OS 2.4 around. DFSORT at level 2.4 has got support for UNIX Regular Expressions for INCLUDE and OMIT (as ISPF already did) but I was unable to find in the documentation what Codepage has to be used for special Characters. It seems that CP1047 is to be the right one but some confirmation would be welcome. |
|
Back to top |
|
|
hankoerlemans
New User
Joined: 25 Jan 2018 Posts: 61 Location: Australia
|
|
|
|
Pittsburgh Share mentioned
Regular expressions in INCLUDE and OMIT statements
and the next two dot points said
Unicode data formats UTF-8, UTF-16 & UTF-32 in OMIT and INCLUDE statements
ASCII free format numeric data in SORT, MERGE, INCLUDE and OMIT statements
Possibly not helpful given LOCALE is also mentioned in the doc. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1329 Location: Bamberg, Germany
|
|
|
|
I tried with LOCALE but that doesn't DFSORT accept. It terminates with RC=16 and shows that the RE operand is invalid. Looks a bit strange to me.
Code: |
//DFSPARM DD *
LOCALE=DE_DE.IBM-273
/* |
Output:
Code: |
INCLUDE COND=(6,5,SS,RE,C'Ý +¨?Ý0-9¨ä1,5ü')
$ |
PS: The garbage in the expression works for my setup when I comment the LOCALE setting. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1329 Location: Bamberg, Germany
|
|
|
|
It seems that always Codepage IBM-1047 has to be used for the RegEx within DFSORT. The result was the expected one once I fiddled that out. |
|
Back to top |
|
|
|