View previous topic :: View next topic
|
Author |
Message |
paragars Warnings : 1 New User
Joined: 15 Feb 2007 Posts: 4 Location: Pune
|
|
|
|
Hi All,
The users are going to place the files on the server. and my job should FTP those on the M/f. But now the problem is there are many users and will keep on increasing. So to keep file name always same is not possible. So is there any way I can FTP the file using some few characters of the file name.
e.g. file names are:
File1.txt
file2.txt
file3.txt
Is there any way I can use only 'File' and files present should get ftp to server. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Sometimes its difficult to understand your question.
Let me give a try to understand your problem:
Are you trying to FTP get file into Mainframe dataset?
You can try with MGET. |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
paragars wrote: |
So is there any way I can FTP the file using some few characters of the file name.
|
Did you mean a wild character or something?
If you can explain your requirement to the forum a bit more in detail, that'll be great.
Cheers, Twissi. |
|
Back to top |
|
|
paragars Warnings : 1 New User
Joined: 15 Feb 2007 Posts: 4 Location: Pune
|
|
|
|
Right I want to FTP the server file to mainframe dataset. To get the file, the syntax includes the filename which we want to load. But due to many users we can't give a same file name in the FTP card. So is there anything so that I can change file name randomly.
Devzee could you let me know more about MGET. |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
If I understand correctly, you've many users who'll be placing files on a server that you want to FTP to mainframe, but you don't know howmany of them and the name of them as well.
If you find out the maximum possible number, you can write a script and then FTP them onto the mainframe using a batch file.
Or if the files are of the similar kind, apend all files (using some script/macro) to a single file and FTP it onto the mainframe the way you've been doing so far.
I don't know whether I've understood your problem.
Twissi. |
|
Back to top |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Alright your question is to FTP get files with different names into Mainframe dataset.
Since you dont know the file name, I assume you just want to get all the files located in the FTP folder. Instead of giving GET FILENAME, you can do MGET. Here is what you can do for this:
Syntax Usage: MGET :foreignfile ...: <(REPLACE> |
|
Back to top |
|
|
|