It's a totally reasonable "non-mainframey" text file. It has no carriage returns except at logical points, not at an arbitrary line width point.
Most e-mails you get follow this convention (other than old listserves that break up lines like this one). It has nothing to do with MS-Word but yes, MS-Word also follows this convention. No, the lines are nowhere near of equal length. Fold would probably work. I have z/OS of course. But as I said I now have the problem solved. Several good solutions presented here. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Monday, December 10, 2018 1:47 PM To: [email protected] Subject: Re: Breaking text file at position 72? On Mon, 10 Dec 2018 21:25:34 +0000, Jesse 1 Robinson wrote: >Text consisting of paragraphs with no indentions or blank lines seems like a >pretty odd notion of 'paragraphs'. ... > It's MS Word's convention. Pressing ENTER inserts a ΒΆ. On Mon, 10 Dec 2018 14:32:11 -0700, Sri h Kolusu wrote: >> >If the data that Charles is processing contains paragraphs without >intervening blank lines, all the paragraphs will be flowed together, not >likely what he wants. Also, he mentioned that some of the lines >are several thousand bytes long. > >DFSORT has resize operator which can split long records into short records >and merge the short records into long records. So as you mentioned Text >flow needs a blank to work with, but DFSORT doesn't need one. Here is a >sample. The only requirement is that the input dataset need to have >RECFM=FB I wonder whether Charles's records are of equal length? Or whether he cah pad them? I still recommend: fold -sw72 file.text z/OS has it. Linux has it. MacOS has it. I'd expect Windows 10 to have it. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
