Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP the files of multiple users to mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: FTP the files of multiple users to mainframe
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    Post subject:
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    Post subject: Re: FTP the files
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us