Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Removing spaces before the tab character

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SYNCSORT
View previous topic :: :: View next topic  
Author Message
V S Amarendra Reddy

Active User


Joined: 13 Sep 2006
Posts: 213
Location: USA

PostPosted: Thu Jun 14, 2018 8:45 am    Post subject: Removing spaces before the tab character
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: 1568
Location: Andromeda Galaxy

PostPosted: Thu Jun 14, 2018 1:53 pm    Post subject:
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    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 Converting spaces to zeroes A_programmers DFSORT/ICETOOL 7 Tue Oct 01, 2019 12:41 am
No new posts SARBCH PRINTJOB option not Works with... Gepinheim CA Products 4 Mon Sep 02, 2019 9:26 pm
This topic is locked: you cannot edit posts or make replies. Removing duplicate record based on th... Nilanjan Sikdar DFSORT/ICETOOL 4 Mon Jul 22, 2019 8:29 pm
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

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