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

BPXBATCH and FTP: QUIT generated by unexpected end of file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
poolpi

New User


Joined: 12 Apr 2007
Posts: 1
Location: France

PostPosted: Tue Jul 10, 2007 6:10 pm
Reply with quote

Hi all,

I'm trying to send files using BPXBATCH and ftp but i always read this output from my stdout file :

QUIT generated by unexpected end of file
>>> QUIT
221 Goodbye

I think there is a problem in the ftp sequence ):

My JCL :

Code:

//STEP1 EXEC PGM=BPXBATCH,
//            PARM='PGM /bin/ftp ftpServer'
//STDIN DD *
user
password
cd /Systeme/CatFicVolK7/Historique/Fichiers
bin
lcd /usr/csi/xfer/temp/
put ftpSologne.ftp test.ftp
quit
/*
//STDOUT   DD   PATH='/usr/csi/xfer/temp/ftpSologne.stdout',
//            PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//            PATHMODE=SIRWXU
//STDERR   DD   PATH='/usr/csi/xfer/temp/ftpSologne.stderr',
//            PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
//            PATHMODE=SIRWXU



PooLpi icon_cry.gif
Back to top
View user's profile Send private message
vikirum

New User


Joined: 26 Apr 2007
Posts: 30
Location: Chennai

PostPosted: Fri Aug 10, 2007 11:21 am
Reply with quote

Morning,

I did the same research for connecting the two OS - UNIX and MVS. I do the connection by trying to execute a shell script as opposed to a program in UNIX. And this works like a charm. Might sound silly, but if you want to try executing the same using a shell script I can offer my assistance.

P.S Reason why I say a shell script is that I had countless abends(abends so against to manual - Name a number I got it from 125 to whatever, and with unbelievable explanations in the joblog ** grim nod **). Perhaps because of the settings and restrictions used in the OS by these folks here, I don't know. Wish there were more help or manuals around for such procedure(s).

Anyway, without digressing, if you want to tweak this a little bit using a shell script feel free to give me a yell.

Thanks much
Vik Rajagopalan.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
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
Search our Forums:

Back to Top