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
 

 

How to remove spaces in a file using sync sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
viji_rags

New User


Joined: 04 Jun 2010
Posts: 24
Location: chennai

PostPosted: Fri Oct 18, 2013 7:02 pm    Post subject: How to remove spaces in a file using sync sort
Reply with quote

Hi,

Could you please let me know how to remove spaces in a dataset using syncsort.

Thank you.
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: Fri Oct 18, 2013 7:19 pm    Post subject:
Reply with quote

Hello,

Post some sample input data and the output you want from that data when your process is run.

Mention the recfm and lreckl of the input/output.
Back to top
View user's profile Send private message
viji_rags

New User


Joined: 04 Jun 2010
Posts: 24
Location: chennai

PostPosted: Fri Oct 18, 2013 7:23 pm    Post subject: Reply to: How to remove spaces in a file using sync sort
Reply with quote

Hi,

If the input of the file is as below and the output file should not contain spaces.

Code:
input:
¦"ABCD         "¦"10      "¦"+         0.00000000000"¦

output:
¦"ABCD"¦"10"¦¦"+0.00000000000"¦

Code'd
recfm=FB
lreckl =810
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Fri Oct 18, 2013 7:32 pm    Post subject:
Reply with quote

viji_rags, please post data, code, and anything else for which alignment may be significant in Code tags; as you will see for yourself, posting without them makes it very difficult to discern where the spaces are.
Back to top
View user's profile Send private message
viji_rags

New User


Joined: 04 Jun 2010
Posts: 24
Location: chennai

PostPosted: Fri Oct 18, 2013 7:38 pm    Post subject: Reply to: How to remove spaces in a file using sync sort
Reply with quote

Hi,

Consider underscore as spaces. The spaces needs to be removed.

input:
¦"A_______"¦"1234___"¦"+____1.00"¦

output:
¦"A"¦"1234"¦"+1.00"¦

Thanks,
Vijay
Back to top
View user's profile Send private message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Fri Oct 18, 2013 7:44 pm    Post subject: Reply to: How to remove spaces in a file using sync sort
Reply with quote

Hi,

Please try the instruction given in the below link:

http://ibmmainframes.com/about47710.html

Let me know if you still need assistance.
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: Fri Oct 18, 2013 8:46 pm    Post subject:
Reply with quote

Hello,

Your original post has been "Code'd". You need to use the code tag when posting anything that needs to retain alignment.

Coded, your info looks like:
Code:
input:
¦"ABCD         "¦"10      "¦"+         0.00000000000"¦

output:
¦"ABCD"¦"10"¦¦"+0.00000000000"¦


Let us know how the solution in the posted link works for you.
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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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