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
 

 

MGET in FTP jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: MGET in FTP jcl
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

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

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

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

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

Global Moderator


Joined: 06 Jun 2008
Posts: 7914
Location: Bellevue, IA

PostPosted: Thu Oct 23, 2014 1:58 am    Post subject:
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    Post subject:
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: 175
Location: UK

PostPosted: Thu Oct 23, 2014 2:34 pm    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Thu Oct 23, 2014 3:24 pm    Post subject:
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: 175
Location: UK

PostPosted: Thu Oct 23, 2014 5:48 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts MGET to FTP multiple files form Serve... srinathds83 JCL & VSAM 2 Tue May 28, 2013 11:38 am
No new posts FTP - mget command help in JCL mjshaheed All Other Mainframe Topics 9 Sat Feb 13, 2010 3:50 am
No new posts How to Override System Defaults in Fi... Mary Lewis All Other Mainframe Topics 3 Wed Dec 26, 2007 8:33 pm


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