How to split single record line into two line?

Created on May 8, 2021, 7:34 p.m. - by Revathy, Sambathraj

I have a dataset with data till 80 length in it..
Due to some restriction.. I want the data (from 65 byte to 77 byte) to be copied to next line.. 
Is there any way we can achieve this ?

Comments (2)

Srinivasan, Panneer Selvam
May 8, 2021, 7:44 p.m.

You can do it by using sort utility. forward slash(/) is used to split the record line in sort. 

Use below code.  Hope this is what you want.

   OUTFIL BUILD=(1,64,16X,/,65,12,68X)

Revathy, Sambathraj
May 8, 2021, 7:58 p.m.

Code worked smiley

Thank you so much for the speedy reply.

Copyright 2020 by ibmmainframer. All Rights Reserved.