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

JCL for ftp file tranfer from mainframe to PC


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

New User


Joined: 20 Jun 2008
Posts: 14
Location: Bangalore

PostPosted: Fri Oct 10, 2008 11:03 am
Reply with quote

Hi

Pls help me with JCL for ftp file tranfer from mainframe to PC .I have submitted the JCL:

//User0xxL JOB 'FTP TRANSFER',NOTIFY=&SYSUID,REGION=0M
//FTP EXEC PGM=FTP,PARM=' xx.xx.xx.xx 21 (EXIT=8'
//OUTPUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//INPUT DD *
userabc
passwordnnn
CD dirabc
PUT 'User0xx.dataset.data'
QUIT
/*
//

and got the following error in SPOOL:

EZA1736I FTP xx.xx.xx.xx 21 (EXIT=8
EZA1450I IBM FTP CS V1R8
EZA1772I FTP: EXIT has been set.
EZA1554I Connecting to: xx.xx.xx.xx port: 21.
220 domainabc Microsoft FTP Service (Version 5.0).
EZA1459I NAME (xx.xx.xx.xx:Userxx):
EZA1701I >>> USER userabc
331 Password required for userabc.
EZA1701I >>> PASS
530 User userabc cannot log in.
EZA1735I Std Return Code = 26530, Error Code = 00011
EZA1701I >>> QUIT
221 Thank You

Even though the password was specified in the jcl,it still doesn't login.I am trying to transfer the files from Mainframe to FTP server running Windows OS.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 10, 2008 12:12 pm
Reply with quote

Hello,

Using that id and password, are you able to log on to that ftp server from a desktop pc? It sounds as though the id/pwd is not valid for that server?

Keep in mind that most Windows passwords are mixed case (not just upper-case as on the mainframe).
Back to top
View user's profile Send private message
Arun Aravind

New User


Joined: 20 Jun 2008
Posts: 14
Location: Bangalore

PostPosted: Fri Oct 10, 2008 1:04 pm
Reply with quote

yes i am able to login to ftp server from Desktop PC.I am able to access the FTP server from ISPF command shell.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Oct 10, 2008 4:46 pm
Reply with quote

The 26530 indicates you cannot log in because of a password failure. Can you start on OMVS session and use FTP to log into the Windows server from it using the userabc/passwordnnn ? Note: just getting to the server from OMVS FTP means nothing; you get to the server in your batch job output. It is the signon that is in question.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Oct 10, 2008 7:14 pm
Reply with quote

Hello,

Possibly (as suggested earlier) the Win-based system has a mixed-case password and you are sending all upper case. . .
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 FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
Search our Forums:

Back to Top