Joined: 29 Jun 2004 Posts: 11 Topics: 8 Location: Bangalore
Posted: Tue Jul 04, 2006 7:21 am Post subject: UNSTRING problem
Friends,
I am using UNSTRING to split a CSV file.
WS-USER-REC : 111116862,01,101010101010
UNSTRING WS-USER-REC DELIMITED BY WS-COMMA
INTO
WS-CONTRACT-ID ( X(12))
WS-SET (X(02))
WS-C-NUMBER (X(12))
But most of the time WS-CONTRACT-ID length is 9 characters in the CSV file sometimes even in the complete CSV file.Hence WS-CONTRACT-ID is taking WS-SET values also even if there is a comma in between. i.e. it is looking for the values for full 12 characters evenif there is comma in between.
The WS-CONTRACT-ID is appearing as 111116862 01 instead of 111116862.
Please suggest how to overcome this problem..
Please let me know if you need some more details about this.. _________________ Regards,
Vishwakiran
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum