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: 2239
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: 2239
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm


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