<quote>  However I wanted to make it even simpler, with no copy and rename. I 
hoped there is such feature in ftp - but it seems I was wrong.  </quote>

Radoslaw,

I had to do the exact opposite thing years ago - take an entire PDS of Cobol 
programs and send them to Windows, adding ".txt" to the end of them for some 
project they were doing.  I could find nothing that did this in Windows FTP.  I 
ended up performing a 2 step FTP, going to Unix (I believe I used HP-UX) which 
had the ability of filename manipulation, then do a second FTP from Unix to 
windows.  

Rex

-----Original Message-----
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of 
Radoslaw Skorupka
Sent: Tuesday, June 24, 2025 1:19 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: [EXTERNAL] Re: FTP to z/OS PDS - filename extensions

W dniu 24.06.2025 o 19:45, Jon Perryman pisze:
> On Tue, 24 Jun 2025 19:15:06 +0200, Massimo Biancucci<mad4...@gmail.com> 
> wrote:
>
>> I think you can generate the FTP script with a .bat o .ps1 and then execute 
>> it.
> .bat files do not have an FTP API which means you must visually verify that 
> each file transferred successfully. This is fine for a 1 time situation but 
> may become annoying if used on a regular basis.
>
> Languages like Python with an FTP library typically throw exceptions for any 
> failed command. Since I've never used any FTP libraries, I can't tell you if 
> the exceptions are reliable nor if there are alternative methods to determine 
> if a command failed.

Actually I'm looking for something *simple*. KIS rules.
Python is not standard part of Windows image and many corporations do not allow 
any installations, even if the software is whitelisted (helpdesk person can do 
it - but that means ticket, acceptance, bureaucracy and time).
So, it is much simpler to copy all the files to temporary catalog, then 
mass-rename it with single command the use ftp.
However I wanted to make it even simpler, with no copy and rename. I hoped 
there is such feature in ftp - but it seems I was wrong.

--
Radoslaw Skorupka
Lodz, Poland

----------------------------------------------------------------------
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