Quantcast
Viewing all articles
Browse latest Browse all 8500

DFSORT/ICETOOL :: RE: SQZ pipe delimited file with 1 column varying length

Author: Rick Silvers
Subject: Re: SQZ pipe delimited file with 1 column varying length
Posted: Wed Mar 15, 2017 8:53 pm (GMT 5.5)

[quote="Rick Silvers"]I have a pipe delimited data set with a layout like this, column 3 with varying length data

Code:
9999999 |9999999 |MEX.111 Description1 Description2 Description3 |11/06/2016 |11062016 | |record count |Y


I need to SQZ the whole data set but in 3rd field I need to leave the spaces between the ctrlid and descriptions and spaces between the descriptions words. The 3rd column will always start with the pipe at position 18 for a length of 400, but the descriptions can vary in length. So I need to SQZ the next field delimiter to end of Description3 and then SQZ last 5 fields to that

I have tried some suggestions from the forum but can't get it to work ...any help would be appreciated

Thanks,
Rick

I fixed with Rexx


Viewing all articles
Browse latest Browse all 8500

Trending Articles