Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us