A utility like <a href="http://www.winzip.com">WinZIP</a> or <a href="http://www.7-zip.org">7zip</a> can do this for you. This will compress the files into a single "container" file that can then be uploaded to an FTP server.
Last Wiki Answer Submitted: June 25, 2008 2:53 pm by Labnuke9932,645 pts.
All Answer Wiki Contributors: Labnuke9932,645 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Bobkberg, I did the mget and it worked. However, now I am faced with this: the files are still separate, it does not concatenate them. So I am now wondering how to concat them once they are on our IBM mainframe. I can’t find a way to use a wildcard for the concat. I have tried to use a sort in the JCL with a wildcard but I cannot make that work. In this situation, I will never know each file name or how many there are. But the folder they are in on the ftp server will hold only those files and they will all have similar names, with a number appended, so wildcard would be great. Just can’t figure out how to make it work. Any suggestions? Please? Thank you very much for anything! BrookR
Hi,
You could try making a small batch file to run on the PC to concatenate the files before you ftp them. Something like this :-
copy filea.*+fileb.*+filec.* ftpfile.txt
This should copy the 3 files to one file called ftpfile.txt which you can then ftp to your server.
I would make a batch file like this :-
copy filea.*+fileb.*+filec.* ftpfile.txt
(run your ftp script here to send ftpfile.txt to your server)
del /Q filea.*
del /Q fileb.*
del /Q filec.*
del /Q ftpfile.old
ren ftpfile.txt ftpfile.old
Hi,
You can just use “put” for the first file, then “append” for the other 2.
Regards,
Martin Gilbert.
Another option – if the files are all in the same folder/directory, you can also do an “mput” or “mget” with wildcards.
Bob
Bobkberg, I did the mget and it worked. However, now I am faced with this: the files are still separate, it does not concatenate them. So I am now wondering how to concat them once they are on our IBM mainframe. I can’t find a way to use a wildcard for the concat. I have tried to use a sort in the JCL with a wildcard but I cannot make that work. In this situation, I will never know each file name or how many there are. But the folder they are in on the ftp server will hold only those files and they will all have similar names, with a number appended, so wildcard would be great. Just can’t figure out how to make it work. Any suggestions? Please? Thank you very much for anything! BrookR
Hi,
You could try making a small batch file to run on the PC to concatenate the files before you ftp them. Something like this :-
copy filea.*+fileb.*+filec.* ftpfile.txt
This should copy the 3 files to one file called ftpfile.txt which you can then ftp to your server.
I would make a batch file like this :-
copy filea.*+fileb.*+filec.* ftpfile.txt
(run your ftp script here to send ftpfile.txt to your server)
del /Q filea.*
del /Q fileb.*
del /Q filec.*
del /Q ftpfile.old
ren ftpfile.txt ftpfile.old
Then I keep a copy of the last concatenated file.
Regards,
Martin Gilbert.
Hi,
You may need to add /B in the copy command to avoid the copy adding an end of file character.
Regards,
Martin Gilbert.