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

Senior Member


Joined: 15 Aug 2015
Posts: 1246
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: 57
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

Senior Member


Joined: 15 Aug 2015
Posts: 1246
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

Senior Member


Joined: 15 Aug 2015
Posts: 1246
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts APL support TSO/ISPF 1
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top