Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

SYNCSORT :: RE: Count Trailing Spaces in variable string after a constant S

$
0
0
Author: Virendra Shambharkar
Subject: Reply to: Count Trailing Spaces in variable string after a constant S
Posted: Mon Feb 06, 2017 8:56 am (GMT 5.5)

Below are the sort cards one of our colleagues suggested and it works. We tested it on a 900 byte string

Code:
SORT FIELDS=COPY                                           
  INREC PARSE=(%00=(ENDAT=C'AAAAAAA',FIXLEN=900)),           
  BUILD=(%00)                                                 
  OUTFIL INCLUDE=(1,900,SS,EQ,C'AAAAAAA'),FTOV,VLTRIM=C' '   


SORT FIELDS=COPY                                           
OUTFIL VTOF,BUILD=(1,2,BI,SUB,+11,EDIT=(IIIIIT),30:X),
REMOVECC

_________________
Virendra Shambharkar


Viewing all articles
Browse latest Browse all 8500

Trending Articles