IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Remove Multiple Spaces from input using Syncsort V1.2.2.1.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Wed Jul 15, 2009 9:27 pm
Reply with quote

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
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Mon Aug 24, 2009 12:06 pm
Reply with quote

sorry wrong post, I am not getting how to delete.

Edited: Requested post is deleted.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 24, 2009 12:21 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Mon Aug 24, 2009 2:31 pm
Reply with quote

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
View user's profile Send private message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Mon Aug 24, 2009 2:58 pm
Reply with quote

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. icon_rolleyes.gif
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Mon Aug 24, 2009 8:24 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 24, 2009 9:05 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top