Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Remove intermediate spaces

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
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    Post subject: Remove intermediate spaces
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Fri Jan 15, 2016 5:34 am    Post subject: Reply to: Remove intermediate spaces
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    IBMMAINFRAMES.com Support Forums -> SYNCSORT All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts To remove the spaces using SORT Card dharmaraok DFSORT/ICETOOL 1 Tue Apr 30, 2019 3:42 pm
No new posts Abends using up address spaces? John Poulakos ABENDS & Debugging 6 Tue Apr 23, 2019 8:34 pm
No new posts Remove selected duplicate rows from t... hnharish DFSORT/ICETOOL 3 Wed Sep 05, 2018 3:11 am
This topic is locked: you cannot edit posts or make replies. remove the gap b/w 2 fields shymala COBOL Programming 5 Thu Aug 02, 2018 12:05 pm
This topic is locked: you cannot edit posts or make replies. I need to remove low values in my field shymala COBOL Programming 8 Sun Jul 29, 2018 11:15 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us