IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Remove intermediate spaces


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pallavi Vishwanath

New User


Joined: 06 May 2011
Posts: 1
Location: India

PostPosted: Fri Jan 15, 2016 2:45 am
Reply with quote

I have a file of LRECL 80. The data present is of variable length.

AAAAAAA
BBBBBBB
CCC
AAAAAAA
BBBBBBB
CCCC
AAAAAAA
BBBBBBB
CCCCCC

I need the data to be in this format:

AAAAAAA
BBBBBBB
CCCAAAA
AAABBBB
BBBCCCC
AAAAAAA
BBBBBBB
CCCCCC

Is it possible to do this using JCL and utilities like SYNCSORT/ FileAid etc?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Jan 15, 2016 5:34 am
Reply with quote

Is your data representative of the data that can exist? For instance:

Code:
CCCC
CC
BBBBBBB


Is that possible?

How many records do you have?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts Cobol program with sequence number ra... COBOL Programming 5
No new posts How to remove block of duplicates DFSORT/ICETOOL 8
Search our Forums:

Back to Top