Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2180
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: 2180
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 Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us