forked from michaelknigge/srs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathftpupload.cmd
More file actions
28 lines (22 loc) · 725 Bytes
/
ftpupload.cmd
File metadata and controls
28 lines (22 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
if [%1]==[] goto :error
if [%2]==[] goto :error
if [%3]==[] goto :error
SET DATASET=V130.SRC
echo open %1 > ftpupload.in
echo %2 >> ftpupload.in
echo %3 >> ftpupload.in
echo quote site RECFM=FB LRECL=80 BLKSIZE=27920 PDSTYPE=PDS TRK PRI=1 SEC=1 DIRECTORY=4 >> ftpupload.in
echo del %DATASET% >> ftpupload.in
echo mkdir %DATASET% >> ftpupload.in
echo cd %DATASET% >> ftpupload.in
echo ascii >> ftpupload.in
echo prompt >> ftpupload.in
echo quote site SBDATACONN=(IBM-037,ISO8859-1) >> ftpupload.in
echo lcd source >> ftpupload.in
echo mput * >> ftpupload.in
echo quit >> ftpupload.in
ftp -s:ftpupload.in
goto :eof
:error
echo Parameter missing - specify host, username and password