https://groups.io/g/hercules-os380/message/22842?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3ACreated%2C%2Cftp+rdw%2C20%2C2%2C0%2C73989465

IBM's is broken
MVS 380's is enhanced to handle.

On Thu, Oct 24, 2024 at 2:43 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



-- 
Mike A Schwab, Springfield IL USA
Where do Forest Rangers go to get away from it all?

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

Reply via email to