View previous topic :: View next topic
|
Author |
Message |
Raghuraman_New
New User
Joined: 03 Oct 2008 Posts: 43 Location: Chennai,India.
|
|
|
|
Hi ,
I need to convert multiple spaces(more than 2 space) from input data into single space using Syncsort V1.2.
Sample Input Data,
Code: |
Data1 Data2 Data3 Data4
Data5 Data6 Data7
.
.
|
Sample Output Data,
Code: |
Data1 Data2 Data3 Data4
Data5 Data6 Data7
.
.
|
I ve tried SQZ=(SHIFT=LEFT,MID=C' ')) but this work only for Syncsort V1.3 . So kindly suggest me any solution applicable for V1.2.
Thanks in advance,
Raghuraman.R |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
sorry wrong post, I am not getting how to delete.
Edited: Requested post is deleted. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Only Moderators can delete the post -- you may request any of us to delete some post of yours if needed. I, for one, will delete the requested post if you want and the other follow up posts. Please use PM for such communications. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Raghuraman_New,
How many fields do you have in your input file?
How do you identify if any of the fields are blank? For eg., In the example given, 'Data7' is shifted to the 3rd field leaving the 4th field blank. Can other fields also be blank like this?
Code: |
Data1 Data2 Data3 Data4
Data5 Data6 Data7 |
|
|
Back to top |
|
|
Raghuraman_New
New User
Joined: 03 Oct 2008 Posts: 43 Location: Chennai,India.
|
|
|
|
Thanks a lot for the reply .
Actually the input file is of FB-80 Length and it has only one field of max length 80.
Each records has some data and can have multiple(more than one) spaces between each words as input.
My requirement is to convert the multiple spaces into one spaces as output using Syncsort V1.2.
Kindly let me know if you need more details. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Since your current version does not allow you to use any built-in functions, it would be better to write a little code. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
My requirement is to convert the multiple spaces into one spaces as output using Syncsort V1.2. |
Get the "reguirement" changed (not a business requirement at that), get the product upgraded, or write the bit of code. . . |
|
Back to top |
|
|
|