By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 6 &nbspReplies

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

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.

Multiple files can be combined into one file by using the command line:copy *.txt newfile.txtFor that you need to put those three files into a folder and use dir to open the folder, then use that command.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy