Reputation: 13
We would like to transfer a file everyday from a Shared location to remote location.
I was informed to use following script:
ASCII
QUOTE SITE RECFM=FB LRECL=750 BLKSIZE=23250 FILE=SEQ CYL PRI=50 SEC=20
PUT filename ‘filename(+1)'
BYE
Also, was recommended to use MOVEit Freely 5.5.0.0 – Secure FTP client.
Is the script above has to be written in Mainframe or in .dat file ?
Upvotes: 1
Views: 10607
Reputation: 6758
Using text editor, put the ftp commands, one command per line.
ASCII
QUOTE SITE RECFM=FB LRECL=750 BLKSIZE=23250 FILE=SEQ CYL PRI=50 SEC=20
PUT filename ‘filename(+1)'
BYE
Let's pretend the script filename you made is send.txt
, you can then run the command ftps
like:
ftps -s:send.txt hostname
Upvotes: 2