poolpi
New User
Joined: 12 Apr 2007 Posts: 1 Location: France
|
|
|
|
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 |
|
vikirum
New User
Joined: 26 Apr 2007 Posts: 30 Location: Chennai
|
|
|
|
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. |
|