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

Problem caracter '\' using bpxwunix


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
josessegura

New User


Joined: 12 Feb 2015
Posts: 6
Location: México,D.F.

PostPosted: Tue Jul 14, 2015 1:47 am
Reply with quote

Hello,

I'm trying to make a search for a valid IP pattern in
each member on a data set using 'grep' with bpxwunix in REXX,
but I'm noting that the character '\' or '{' is replaced by ':',
how I can solve this ?.

The regular expression is as follows (the expression was tested in a unix):

exp = '(25 [0-5] | 2 [0-4] [0-9] |? [01] [0-9] [0-9]) \.
(25 [0-5] | 2 [0-4] [0-9] | [01] [0-9] [0-9]?) \.
(25 [0-5] | 2 [0-4] [0-9] | [01] [0-9] [0-9]?) \.
(25 [0-5] | 2 [0-4] [0-9] | [01] [0-9] [0-9]?) "

That return code is 0, but does not return any result.

cmd = 'echo 127.0.0.1 | grep -E "' exp '"
bpxwunix cmd call out,,., STACK.
do i = 1 to out.0
say out.i
end

thx
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Sysncsort - Justification problem SYNCSORT 6
No new posts Problem getting record length of a re... COBOL Programming 2
No new posts Problem while trying to manipulate re... DFSORT/ICETOOL 3
No new posts TSO IOF problem TSO/ISPF 5
No new posts Need help with this dfsort problem DFSORT/ICETOOL 7
Search our Forums:

Back to Top