The OP asked about uploads. So it's not about adding CR-LF. It's an IND$FILE 
option passed from the PC to have IND$FILE break logical records when it sees a 
CR-LF. (Really. I know this for a fact.)

Yes, in the wonderful PC world of "hey, it works most of the time" yes I can 
picture a value to this. You might have a file with CR-LF (X'0D0A') at the end 
of each logical record. Breaking it into records on the mainframe at CR-LF 
boundaries makes sense. Yes, a "random" binary file could contain x'0D0A' 
sequences that were part of the data and not line endings. Perhaps their data 
does not. If it does, they should only occur every now and then, and perhaps 
breaking the data into records and manually fixing up the erroneous breaks is 
preferable to inserting every record break manually.

Charles

On Thu, 16 Jan 2025 23:59:10 +0000, Farley, Peter <[email protected]> 
wrote:

>Phil,
>
>I can't answer for the emulator-controlled transfer with or without their 
>configured CR/LF option, but I would ask the client what happens if they use 
>the native Windows FTP command to do the transfer in binary to a pre-allocated 
>RECFM=FB,LRECL=80 file or PDS member and then use that file or member as input 
>to the TSO RECEIVE.  I have done that myself thousands of times and never had 
>a problem with the RECEIVE on the z/OS side.
>
>I must admit I agree with you, I can't see any scenario where adding CR/LF on 
>a binary transfer makes any sense at all.
>
>Peter
>
>From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
>Phil Smith III
>Sent: Thursday, January 16, 2025 11:24 AM
>To: [email protected]
>Subject: File transfer question
>
>
>A customer just had a problem uploading some service we'd released. It was an 
>XMIT file, and they did transfer it as binary F 80, but TSO RECEIVE was 
>failing. After some tinkering and comparing screenshots of the file, they 
>eventually found that they had "the CR/LF option" checked in their emulator, 
>which they called "the Rocket emulator" (I suspect that is/was BlueZone). They 
>sent a screenshot that shows the file transfer options: Binary vs. text, plus 
>checkboxes for Append and CR/LF.
>
>
>
>My question is: Can you devise a scenario where a binary transfer "with CR/LF" 
>makes sense? I can't even think how it would decide where to put them in--it's 
>just a byte stream! The only linends are whatever the native platform uses, 
>but if it's binary those wouldn't seem to me to be meaningful. And of course a 
>binary file could well have those bytes in the data.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to