Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
RegEx Support in DFSORT (z/OS 2.4)

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

Active User


Joined: 15 Aug 2015
Posts: 147
Location: Germany

PostPosted: Thu Nov 14, 2019 7:44 am    Post subject: RegEx Support in DFSORT (z/OS 2.4)
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: 26
Location: Australia

PostPosted: Tue Nov 19, 2019 8:16 am    Post subject: Reply to: RegEx Support in DFSORT (z/OS 2.4)
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: 147
Location: Germany

PostPosted: Wed Nov 20, 2019 12:21 pm    Post subject:
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: 147
Location: Germany

PostPosted: Mon Dec 02, 2019 12:54 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT Output file order query A_programmers DFSORT/ICETOOL 1 Thu Mar 26, 2020 11:59 pm
This topic is locked: you cannot edit posts or make replies. DFSORT-How to convert ZD to ZS in DFSORT useit DFSORT/ICETOOL 2 Thu Mar 26, 2020 10:43 am
No new posts DFSORT to handle in between specific ... subratarec DFSORT/ICETOOL 6 Thu Feb 06, 2020 1:22 am
No new posts Need help with this dfsort problem kushkush DFSORT/ICETOOL 7 Sun Feb 02, 2020 6:34 pm
No new posts Need advise in calling DFSORT from REXX ajithajt CLIST & REXX 9 Thu Nov 29, 2018 10:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us