Hi Radoslaw, Go via USS.
ftp mainframe lcd /windows_folder cd /uss/directory mput * quit Then use TSO OGETX with the SUFFIX option to place all the files into a PDS. Peter On Wed, 25 Jun 2025 at 04:11, Radoslaw Skorupka < [email protected]> wrote: > Good question. > However the assumption is all the files have same extension. And more: > all the filenames conform 8-char rule. Otherwise it would not make any > sense. > > BTW: PCOMM IND$FILE features allow to use such template - take filename > (without extension) and put it in datasetname. However it is manually > operated and slooower than ftp. > > BTW2: PCOMM templates are almost undocumented. > > -- > Radoslaw Skorupka > Lodz, Poland > > > > W dniu 24.06.2025 o 16:18, Schmitt, Michael pisze: > > How would it handle two files with the same "member" name but different > extensions? > > > > For a solution, you could use shell commands to construct a file of put > commands: put member.txt member > > And then have FTP use the file for input. > > > > -----Original Message----- > > From: IBM Mainframe Discussion List<[email protected]> On Behalf > Of Radoslaw Skorupka > > Sent: Tuesday, June 24, 2025 8:44 AM > > To:[email protected] > > Subject: 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? > > > > -- > > Radoslaw Skorupka > > Lodz, Poland > > > > > > ---------------------------------------------------------------------- > 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
