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

MGET in FTP jcl


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nareshratnala

New User


Joined: 27 May 2009
Posts: 8
Location: bangalore

PostPosted: Thu Oct 23, 2014 12:28 am
Reply with quote

Hi,

COuld you please help on the MGET of multiple files with same name to a dataset?

The name of the files are like this.

Claim_20140902025518.txt
Claim_20140902034033.txt
Claim_20140902070906.txt
Claim_20140902083122.txt
Claim_20140902101835.txt
Claim_20140902103349.txt

Thank you.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2588
Location: NYC,USA

PostPosted: Thu Oct 23, 2014 1:52 am
Reply with quote

Change local directory using "lcd" command in ftp to specify the destination and also look for these threads.

ibmmainframes.com/about46784.html
ibmmainframes.com/about46784.html
ibmmainframes.com/about62698.html
ibmmainframes.com/about37041.html
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 23, 2014 1:58 am
Reply with quote

You can MGET those files to a Unix directory. You cannot use MGET to put them to z/OS data sets.
Back to top
View user's profile Send private message
nareshratnala

New User


Joined: 27 May 2009
Posts: 8
Location: bangalore

PostPosted: Thu Oct 23, 2014 4:41 am
Reply with quote

Robert Sample wrote:
You can MGET those files to a Unix directory. You cannot use MGET to put them to z/OS data sets.


Hi,

You mean we cannot take to a dataset file in mainframe.
we dont have the unix environment.


we need to take it through a jcl and process via program to load into the database.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 197
Location: UK

PostPosted: Thu Oct 23, 2014 2:34 pm
Reply with quote

It should be straightforward enough.

What have you tried and what problems are you getting?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8569
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 23, 2014 3:24 pm
Reply with quote

With MGET, you need every file name on the remote system to match z/OS expectations: data set names no more than 44 characters, a period every 8 (or less) characters, the first character after a period must be an alphabetic or specified national character; if you are going to a PDS, every file name must be 1 to 8 characters with the first being alphabetic / national.

The file names you posted do NOT meet the z/OS data set name criteria and hence you cannot transfer them to a z/OS system as data sets using MGET (or anything else, for that matter). You could use GET and a local data set name for each file name, but as you have posted MGET cannot be used.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 197
Location: UK

PostPosted: Thu Oct 23, 2014 5:48 pm
Reply with quote

You are of course correct Robert, I do apologise. I was thinking of doing multiple GETs but appending the data to one mainframe dataset.

I must read the questions properly!
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts MGET to FTP multiple files form Serve... JCL & VSAM 2
No new posts FTP - mget command help in JCL All Other Mainframe Topics 9
No new posts How to Override System Defaults in Fi... All Other Mainframe Topics 3
Search our Forums:

Back to Top