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: 1747
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 Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts JCL sort Match and NoMatch rakeshsekar1987 SYNCSORT 2 Thu Feb 02, 2017 10:26 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm


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