Yes, I did one in Rexx and it worked without an issue. Peter
-----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Seymour J Metz Sent: Wednesday, June 12, 2019 3:15 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Is there any way to convert RECFM=U to RECFM=V with a utility or script? Well, I would probably do it with assembler, but what's wrong with writing a REXX script? or a Perl script, for that matter? -- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Farley, Peter x23353 <peter.far...@broadridge.com> Sent: Wednesday, June 12, 2019 3:05 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Is there any way to convert RECFM=U to RECFM=V with a utility or script? We have a vendor-generated file that comes in with DCB=(RECFM=U,LRECL=200,BLKSIZE=27998) (don't ask why please, this DCB setting is out of our hands). The records are actually variable length data, up to 200 bytes of actual data with no length prefix (no RDW/BDW). No binary data, only text characters. I suspect a *ix text-format file as the vendor source but have no proof of that. We have tried every utility we could think of (IEBGENER, IDCAMS REPRO, SORT INREC BUILD=(1,200)) to copy this data to a more usable z/OS record format but so far nothing we tried works. Am I correct that only a Rexx or awk script could do this conversion (given the update to Rexx to support RECFM=U files and awk's native capabilities) or an HLL program coded to handle U-format input can do this conversion? Any other ideas you have to help us perform the conversion without writing an HLL program would be much appreciated. Peter -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN