Thank for your response, Paul. I agree, CRLF irrelevant to binary files. Surprisingly, only after using CRLF option, I get those binary records in proper record length. I tried to force it to U format but did not work for m. I will try again with different methods.
I can preserve RDW and BDW. How to preserve SDW? I did not see mention of SDW in these options. May be SDW is the key to maintain record length. Thank you, Prashant Joshi Mainframe Architect +91 9743 440 503 (Mobile) -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Paul Gilmartin Sent: Tuesday, May 16, 2023 1:38 AM To: IBM-MAIN@LISTSERV.UA.EDU Subject: [EXTERNAL] Re: VBS file read in windows - end of record issue On Mon, 15 May 2023 18:54:40 +0000, Prashant Joshi wrote: > ... >For some files, when I transfer using IND$FILE (option 6) using Binary and >CRLF option checked, I gets record properly. But it does not work for every >file. And due to different file sizes, IND$FILE may not be option for me. > CRLF should be irrelevant for binary files. >Need your help to find, what am I missing? > Allocate your data set overriding to RECFM=U. Tne BDWs and SDWs should appear ad data. Transfer the file with a method that preserves those BDWs and SDWs. (I don't recommend IND$FILE.) Decode the SDWs and translate to UTF-8 with your Python. I hate EBCDIC! -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN