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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top