Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message

New User

Joined: 27 Feb 2004
Posts: 2

 Posted: Fri Aug 08, 2008 12:27 am    Post subject: REXX: Absolute Position in PARSE Hi I am new to REXX and while going through initial document available I came across an example for Absolute Position in PARSE which is not clear to me. Can someone help me to understand MYSTR=" WE HAVE MET THE ENEMY, AND HE IS US. " PARSE VAR MYSTR V1 =10 V2 V3 V4 17 V5 =25 V6 1 V7 V8 Output is something like this V1 > " WE HAVE " V2 > "MET" V3 > "TH" V4 > "" V5 > "E ENEMY," V6 > " AND HE IS US. " V7 > "WE" V8 > "HAVE MET THE ENEMY, AND HE IS US. " I can understand how V1, V2 got the value, but confusion is with V3 and V4,V5 value. Can some help me how these values are assigned. Thanks

enrico-sorichetti

Global Moderator

Joined: 14 Mar 2007
Posts: 10309
Location: italy

 Posted: Fri Aug 08, 2008 1:02 am    Post subject: Reply to: Help me with the logic did You look at?
Pedro

Senior Member

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

Posted: Fri Aug 08, 2008 1:39 am    Post subject: Reply to: REXX: Absolute Position in PARSE

 Quote: Output is something like this

I did not get the same results as you. You will not get good answers if your examples are not correct.

Using '=10' will cause a break at the column, not on a word boundary.

And if you use something like '=10 v3 =18', it will cause it to include spaces within the variable.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am Creating ISPF Screens with Scrname vi... Albireo20 TSO/ISPF 9 Tue Sep 05, 2017 4:24 pm How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us