MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP text file to mainframes

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Thu Oct 15, 2009 2:50 pm    Post subject: FTP text file to mainframes Reply with quote

Hi all,
This is regarding FTP text file to Dataset in mainframes.
(I have searched couple of links posted earlier in this forum. I found mostly they are related FTP to windows from mainframes.
I have gone thru couple of links and posting by Kolusu too.
But, I was unable to get the FTP to mainframes posting.)


I am trying to write a JCL to FTP the text file from local PC
to mainframes.
But, I am ending with issues.
Please help me in this regard.

Herein is the JCL:
Code:

***************************** Top of Data ******************************
//XXXXXC JOB (540-0-2853-28),'DB2 SUPPORT',CLASS=C,MSGCLASS=T,       
//             MSGLEVEL=(1,1),NOTIFY=&SYSUID,USER=XXXXX               
//*XXXXXA JOB (ACCOUNT),'NAME'                                       
//*                                                                     
//*                                                                     
//JOBLIB    DD DISP=SHR,DSN=blah.blah.SDSNLOAD             
//PROCLIB JCLLIB ORDER=blah.blah.PROCLIB                   
//STEPNAME EXEC PGM=FTP,PARM='aaa.bbb.ccc.dd'  ===> {PC IP ADDRESS}                       
//SYSPRINT  DD SYSOUT=*                                                 
//SYSIN     DD *                                                       
some.company.com ==> {MAINFRAMES HOST NAME}                                                     
USERID  XXXXXXXX   ====> {MAINFRAMES USERID AND PASSWORD}                                                   
GET 'XXXXX.SYSREC.TEST.FTP3'  (REPLACE 'C:\FTP-TEST.TXT' ==> {DATA IN THE PC IN C:\ DRIVE}             
QUIT                                                                   
/*                                                                     
**************************** Bottom of Data ****************************

Herein is the OUTPUT: 

                                                                     
******************************** Top of Data ***********************************
EZA1736I some.company.com                                                   
EZY2640I Using 'TCPIP.FTP.DATA' for local site configuration parameters.       
EZA1450I IBM FTP CS V1R10                                                       
EZA1554I Connecting to: some.company.com aaa.bbb.cc.ddd port: 21.               
220-FTPV2155 IBM FTP CS V1R10 at some.company.com, 12:37:35 on 2009-10-15.     
220 Connection will close if idle for more than 30 minutes.                     
EZA1459I NAME (some.company.com:XXXXX):                                       
EZA1701I >>> USER aaa.bbb.ccc.dd                                               
331 Send password please.                                                       
EZA1789I PASSWORD:                                                             
EZA1701I >>> PASS                                                               
530 PASS command failed                                                         
EZA1460I Command:                                                               
EZA1736I GET 'XXXXX.SYSREC.TEST.FTP3'  (REPLACE 'C:\FTP-TEST.TXT'             
EZA1542I Usage: GET foreignfile <localname> <(REPLACE>                         
EZA1460I Command:                                                               
EZA1736I QUIT                                                                   
EZA1701I >>> QUIT                                                               
221 Quit command received. Goodbye.                                             
 ******************************* Bottom of Data ********************************

_________________
Satya
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Oct 15, 2009 3:21 pm    Post subject: Reply with quote

satyenderd,

isnt it obvious?

Quote:

331 Send password please.
EZA1789I PASSWORD:
EZA1701I >>> PASS
530 PASS command failed


Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Fri Oct 16, 2009 8:07 am    Post subject: Reply with quote

Deleted post....
Back to top
View user's profile Send private message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Fri Oct 16, 2009 6:53 pm    Post subject: Reply with quote

Thanks Kolusu for your quick response.
I am looking into the JCL, I will update the posting once i come up with soultion or end up with errors. Smile Smile
_________________
Satya
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Mon Oct 26, 2009 4:40 pm    Post subject: Reply with quote

Unless your pc is configured as an FTP Server, you will not be able to "pull" the file from the pc to the mainframe using mainframe ftp jcl. . .

Very few pc's are configured as a server (most organizations do not allow this). Almost all are configured with an ftp client which is part of the tcp/ip product.
_________________
All the best,

di
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group