Page 1 of 1

How to sepearate delimiter using Rexx

PostPosted: Fri Oct 21, 2011 7:01 pm
by nm992
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.

Re: How to sepearate delimiter using Rexx

PostPosted: Fri Oct 21, 2011 7:07 pm
by prino
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?"...

Re: How to sepearate delimiter using Rexx

PostPosted: Fri Oct 21, 2011 8:28 pm
by MrSpock
Presuming that 'string' contains the delimited record:

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

and so on.