IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

RegEx Support in DFSORT (z/OS 2.4)


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 385
Location: Bamberg, Germany

PostPosted: Thu Nov 14, 2019 7:44 am
Reply with quote

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
View user's profile Send private message
hankoerlemans

New User


Joined: 25 Jan 2018
Posts: 30
Location: Australia

PostPosted: Tue Nov 19, 2019 8:16 am
Reply with quote

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. icon_wink.gif
Back to top
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 385
Location: Bamberg, Germany

PostPosted: Wed Nov 20, 2019 12:21 pm
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Active User


Joined: 15 Aug 2015
Posts: 385
Location: Bamberg, Germany

PostPosted: Mon Dec 02, 2019 12:54 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Join lines with dfsort DFSORT/ICETOOL 5
No new posts Covert k to 1000 / m to 1000000 using... DFSORT/ICETOOL 5
No new posts RegEX search in ISPF editor TSO/ISPF 4
No new posts DFSORT Output file order query DFSORT/ICETOOL 2
This topic is locked: you cannot edit posts or make replies. DFSORT-How to convert ZD to ZS in DFSORT DFSORT/ICETOOL 2
Search our Forums:

Back to Top