I'm 99% certain that there are some "site" options in IBM FTP that will 
round-trip binary VB data.    I've seen it discussed on IBM-MAIN, but not for 
years and I can't recall the details.

FWIW, you can do it easily with Co:Z SFTP.

>From cozsftp client:

lzopts mode=binary,linerule=rdw   #or L4 works too
put //hlq.binary.vb  remote.file.name

from remote SFTP client:

ls /+mode=binary,linerule=rdw
get //hlq.binary.vb  local.file.name


Kirk Wolf
Dovetailed Technologies
https://coztoolkit.com

On Fri, Jan 17, 2025, at 10:45 PM, Andrew Rowley wrote:
> On 18/01/2025 8:42 am, Radoslaw Skorupka wrote:
> > Transfer between mainframe  (z/OS) and distributed systems has never 
> > been an issue or mess.
> 
> It is a mess, I submit as evidence the difficulty doing a round-trip 
> transfer and ending up with the same data you started with.
> 
> Fixed length records and binary transfer is OK, anything else can be a 
> problem.
> 
> EBCDIC<->ASCII translation can be a problem depending on the code pages 
> involved. Usually it works acceptably but it's hard to guarantee.
> 
> I don't think IBM provides anything that does variable length records in 
> binary mode correctly for a round trip. It's a while since I looked at 
> FTP, but last I looked the RDW option only worked for transfers from the 
> mainframe. You couldn't use it to write VB data back to the mainframe.
> 
> So with or without translation, FB or VB gives you 4 scenarios, only 1 
> of which is truly reliable.
> 
> -- 
> Andrew Rowley
> Black Hill Software
> 
> ----------------------------------------------------------------------
> 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

Reply via email to