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

Removing spaces before the tab character


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 216
Location: USA

PostPosted: Thu Jun 14, 2018 8:45 am
Reply with quote

Hi,

I have an input file and it is of VB format with 5000 LRECL. The record contains spaces and tab characters within the data.

The requirement is to remove the space or group of spaces if they end with a tab character. i.e. X'4005' should be replaced with X'05' and X'404005' also with X'05'. As long as there is a tab character in after one or more spaces, those all spaces need to be removed. However if the space or just spaces present without a tab character in the end, they shouldn't be removed.

Is it possible to do this using syncsort?
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1565
Location: Andromeda Galaxy

PostPosted: Thu Jun 14, 2018 1:53 pm
Reply with quote

You could achieve it by using INREC PARSE

Please search the forum for examples.
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
This topic is locked: you cannot edit posts or make replies. Write Character to Hexadecimal file w... COBOL Programming 8
No new posts Map a data element to SPACES if it is 0 COBOL Programming 2
No new posts Compare two character variables Head ... CLIST & REXX 3
No new posts Foreign character look different in m... COBOL Programming 3
No new posts Removing Hyphens and Dots using Syncsort SYNCSORT 8
Search our Forums:

Back to Top