PGM=AMATERSE works too.

Mark Jacobs 

Sent from ProtonMail, Swiss-based encrypted email.

GPG Public Key - 
https://api.protonmail.ch/pks/lookup?op=get&[email protected]


On Thursday, October 24th, 2024 at 6:47 AM, Joe Monk 
<[email protected]> wrote:

> When you transfer a variable length file using the binary option, the rdws
> become part of the the data.
> 
> One way around this that I am aware of is to change the file into an XMIT
> file and then ftp it in binary mode.
> 
> Joe
> 
> On Thu, Oct 24, 2024 at 2:17 AM Jason Cai [email protected] wrote:
> 
> > Hi all
> > 
> > I followed these procedures:
> > 
> > 1. Created a Variable-Length Dataset on the Mainframe
> > 
> > Dataset Name: TEST.DATA1
> > Logical Record Length (LRECL): 10
> > Record Format :VB
> > Content: The dataset contains 2 records:
> > 
> > 000001 AAA
> > 000002 BB
> > 
> > 2. Downloaded the Dataset to Linux
> > 
> > Using an FTP on the z/OS platform, I downloaded the dataset to Linux with
> > the following commands:
> > 
> > ftp -v -n <<EOF
> > open [linux_server_address]
> > user [username] [password]
> > prompt
> > binary
> > locsite rdw
> > put TEST.DATA1
> > close
> > bye
> > 
> > 3. Uploaded the File Back to the Mainframe from Linux
> > 
> > On a Linux platform, I attempted to upload the file back to the mainframe
> > using the following FTP commands:
> > 
> > ftp -v -n <<EOF
> > open [mainframe_address]
> > user [username] [password]
> > prompt
> > binary
> > quote site rdw recfm=vb lrecl=10
> > put TEST.DATA1 TEST.DATA2
> > close
> > bye
> > EOF
> > 
> > Problem Statement
> > 
> > I expected TEST.DATA2 to be identical to TEST.DATA1, but the RDWs were
> > misinterpreted, resulting in incorrect data.
> > How can I correctly FTP a variable-length file to the mainframe so that
> > the uploaded dataset matches the original?
> > 
> > Could you please provide guidance on the correct procedure to FTP a
> > variable-length file to the mainframe, ensuring that the dataset on the
> > mainframe is restored to its original format?
> > 
> > I don't know where I went wrong in step 3. Uploaded the File Back to the
> > Mainframe from Linux.
> > 
> > Any suggestions and help would be greatly appreciated
> > 
> > Thanks a lot!
> > 
> > Jason Cai
> > 
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
> 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN

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

Reply via email to