You need to fix your process that sent the file. If you FTP'ed the file from open system to mainframe, take a look at the SITE command where you can specify the file DCB properties. Once you specify that you don't even split the records based on the CRLF.
BillyBoyo wrote:OK, look at PARSE, with ENDBEFR=X'crlf' and FIXLEN=347. You'll need two PARSEd fields.
You'll need an OUTFIL which will allow you to use the "slash operator", /, to output more than one record from one input record. You'll probably want to use VLTRIM to drop the trailing blanks which would otherwise exist (I'm guessing you won't have any "genuine" trailing blanks due to the way the file has been created).
There is more to just parsing. Look at the records 222222, 33333 and 4444..... They are all spread across 2 records. Along with parsing we need to merge the split records into a single record which will be a difficult task. OP just need to fix his FTP parms which would automatically take care of the issue.