View previous topic :: View next topic
|
Author |
Message |
vidyaa
New User
Joined: 02 May 2008 Posts: 77 Location: chennai
|
|
|
|
Hi,
can anyone tell me how to parse the variables having the ~ seperator and assign it to different varibles....the difficulty here is we will not know how many varibles are there in the record
ex:
input file is
AAA~DVDF~12324~
432434~FSD~
The number of varibles is not constant per line so we carnt use general parsing over the records....then what is the method of parsing these values and putting in as many number of varibles.
my outpput should be like
VAR1 = AAA
VAR2 = DVDF
VAR3 = 1234
VAR4 = 432434
VAR5 = FSD
Please help on the same |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
I do not see any DB2 relation...
What language do You want to use for parsing ? |
|
Back to top |
|
|
Sinkaravelan S
New User
Joined: 21 Apr 2008 Posts: 27 Location: coimbatore-TN india
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
waiting for an acknowledgment from the TS in order to move the topic to the proper forum |
|
Back to top |
|
|
vidyaa
New User
Joined: 02 May 2008 Posts: 77 Location: chennai
|
|
|
|
this is to deal with rexx |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
why not post to the right forum to start with ?
I' ll move the topic where it belongs |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If the number is unknown and the seperator is stable then I would use TRANSLATE rather than parse.
Count the seperate words left in the string, and do a definitive loop using that count. |
|
Back to top |
|
|
|