How to sepearate delimiter using Rexx



IBM's Command List programming language & Restructured Extended Executor

How to sepearate delimiter using Rexx

Postby nm992 » Fri Oct 21, 2011 7:01 pm

I have a CSV file with , as a delimiter/separator. I need to copy this to mainframe with the exact length of columns. How can we use parse function to split the records with delimiter.
nm992
 
Posts: 43
Joined: Sun Jul 11, 2010 11:31 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to sepearate delimiter using Rexx

Postby prino » Fri Oct 21, 2011 7:07 pm

Ever considered reading a manual?

This question is about as elementary as "I have a teabag and hot water, how do I make a cup of tea?"...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: How to sepearate delimiter using Rexx

Postby MrSpock » Fri Oct 21, 2011 8:28 pm

Presuming that 'string' contains the delimited record:

Parse Var string variable_1 ',' variable_2 ',' variable_3 ',' ... variable_nn

and so on.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post