Remove Leading spaces

In this Mainframe Forum - You can post your queries on DFSORT, ICETOOL , SyncSort & JCL Utilities

Moderators: Frank Yaeger, Moderator Group

Post Reply
neomaxi
Member
Posts: 6
Joined: Tue Jul 07, 2015 6:32 pm

Remove Leading spaces

Post by neomaxi » Thu Apr 06, 2017 2:01 am

How Do I remove leading spaces easily with the below input record.

Code: Select all

----+----1----+----2----+----3----+----4----+--
***************************** Top of Data *****
TEST         TEST             TEST             
TEST            TEST 1        TEST             
TEST         TEST             TEST             


I want output to look like this:

Code: Select all

----+----1----+----2----+----3----+----4----+--
***************************** Top of Data *****
TEST         TEST             TEST             
TEST         TEST 1           TEST             
TEST         TEST             TEST

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others