//GIBAEFTP JOB (D,GIBA,0001),'SR22',MSGCLASS=X,
// CLASS=A,NOTIFY=&SYSUID,MSGLEVEL=(1,1),REGION=0M
//*--------------------------------------------------------------*
//* SENDPC - Send files to my PC *
//*--------------------------------------------------------------*
//*
//SENDPC EXEC PGM=FTP,REGION=4M,PARM='put here PC ip address'
//*
//SYSIN DD *
userid password
ASCII
PUT 'mainframe_dsn' local_file_name
CLOSE
QUIT
/*
//SYSPRINT DD SYSOUT=*
You can also run a bat file on your PC and get the files. This aproach avoids the need of running ftp server on your PC.
I have 2 files:
bat file: transfer.bat
content:
ftp -s:ftpcommands.txt (put here your mainframe ip address without surrounding brackets)
command file: ftpcommands.txt
content:
mainframe_userid
mainframe_password
get remote-file [local-file]
bye
In bat file or in command file you can write additional commands to change working directories (local and remote), you can also set allocation parameters if you are sending files to mainframe, and so on....
If you want to know what commands you can issue, open a FTP session and type "help" or "remotehelp".
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