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

Pick email Ids from a report.


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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Mar 09, 2012 6:09 pm
Reply with quote

abhit007 wrote:
Ignore the example in prev post , consider this example where parenthesis is balanced.
Since there are multiple Ids it is coming in multiple lines.
Enrico, Working on a distant-contract, by any chance? icon_smile.gif
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Mar 09, 2012 8:18 pm
Reply with quote

I think this is more simpler logic:
Quote:
1. Change all '(', ')', and ',' to blanks.
2. for each word of each line, use POS function to see if it has the '@' character.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Mar 10, 2012 1:41 am
Reply with quote

Quote:
Enrico, Working on a distant-contract, by any chance?


nope!
writing scanners and parsers is one of my preferred subjects

so when I see something related I like to explore all the alternatives, not only just working ,
but also not trivial from a scanning/parsing algorithmic point of view

stay tuned I hav a nice snippet coming !
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 Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
Search our Forums:

Back to Top