IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP the files of multiple users to mainframe


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
paragars
Warnings : 1

New User


Joined: 15 Feb 2007
Posts: 4
Location: Pune

PostPosted: Thu Feb 15, 2007 12:53 pm
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Thu Feb 15, 2007 1:31 pm
Reply with quote

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
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Thu Feb 15, 2007 2:34 pm
Reply with quote

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
View user's profile Send private message
paragars
Warnings : 1

New User


Joined: 15 Feb 2007
Posts: 4
Location: Pune

PostPosted: Thu Feb 15, 2007 2:48 pm
Reply with quote

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
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Thu Feb 15, 2007 3:04 pm
Reply with quote

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
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Fri Feb 16, 2007 4:44 am
Reply with quote

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:
Code:

MGET *

Syntax Usage: MGET :foreignfile ...: <(REPLACE>
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top