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

New User


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

New User


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

New User


Joined: 15 Aug 2015
Posts: 59
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 Need advise in calling DFSORT from REXX ajithajt CLIST & REXX 9 Thu Nov 29, 2018 10:50 am
No new posts How to handle different file length b... javen777 DFSORT/ICETOOL 15 Mon Nov 26, 2018 12:13 pm
No new posts How to count the number of times key ... vnktrrd DFSORT/ICETOOL 14 Thu Nov 15, 2018 9:19 pm
This topic is locked: you cannot edit posts or make replies. DFSORT output in CSV for data spans i... hiravibk DFSORT/ICETOOL 3 Tue Nov 13, 2018 7:55 pm
No new posts Generate and submit JCL and step dyna... vnktrrd DFSORT/ICETOOL 11 Wed Jul 25, 2018 11:31 pm

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