Yes, but this is what I want to avoid.

Why?
1. I don't want to modify source.
2. I don't want to make a copy and then modify.
3. I hope such need is quite common and it can be solved using some FTP commands/parameters. 4. (last but not least) Assuming the 3. I guess there are more interesting "rename features", which can help in other cases.

--
Radoslaw Skorupka
Lodz, Poland




W dniu 24.06.2025 o 16:02, Nash, Jonathan S. pisze:
Is cmd.exe

Ren *.txt *.

Then do the upload

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Radoslaw Skorupka
Sent: Tuesday, June 24, 2025 9:44 AM
To: [email protected]
Subject: [EXTERNAL] FTP to z/OS PDS - filename extensions

The following scenario:
Windows system, many (dozens) files in a directory. Filenames:
MEMBER.txt
Obviously the MEMBER is unique for each file, however each name is
"valid 8-character" like member name.
The goal is to PUT them to a PDS, preserving filename as a member name
and loosing the txt extension.

However regular MPUT *  does not work, because FILE.txt is not proper
member name.
Of course I can rename the files before transfer, but maybe there is a
way to include name translation into PUT/MPUT command?


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

Reply via email to