Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Remove Multiple Spaces from input using Syncsort V1.2.2.1.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Remove Multiple Spaces from input using Syncsort V1.2.2.1.
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    Post subject:
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

Senior Member


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

PostPosted: Mon Aug 24, 2009 12:21 pm    Post subject:
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: 2287
Location: @my desk

PostPosted: Mon Aug 24, 2009 2:31 pm    Post subject:
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    Post subject:
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: 2287
Location: @my desk

PostPosted: Mon Aug 24, 2009 8:24 pm    Post subject:
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

Site Director


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

PostPosted: Mon Aug 24, 2009 9:05 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts JOINKEYS Paired and Unpaired Sort on ... MFwhiz DFSORT/ICETOOL 7 Tue Nov 07, 2017 2:46 am
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us