Subject: | |
From: | |
Reply To: | |
Date: | Wed, 3 Dec 1997 15:34:39 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
One thing we've done when we want to shoot a bunch of files to
another machine is to initiate the GET on the 3k and use MPEX as the
looping mechanism.
For example:
!JOB MOVEIT,(*USER).?(*ACCT); INPRI=5; OUTCLASS=LP,2
!
!RUN MAIN.PUB.VESOFT,MPEX
REPEAT
ECHO !HPACCOUNT MMAED00J Transferring ![RFILE.FILE] to Angel.
COMMENT Command file with ftp login info
TOANGEL.JCL !MPEXCURRENTFILE ![RFILE.FILE].TXS
IF !FTPLASTERR = 0 THEN
ECHO !HPACCOUNT MMAED00J ![RFILE.FILE] sent to Angel.
ECHO !HPACCOUNT MMAED00J Purging ![RFILE.FILE].
PURGE !MPEXCURRENTFILE
ELSE
TELLOP !HPACCOUNT MMAED00J Send failed for file ![RFILE.FILE]!!
SETJCW JCW FATAL
:EOJ
ENDIF
FORFILES /!HPACCOUNT/TOANGEL/@
EXIT
!ECHO !HPACCOUNT Daily file transfers complete!
!
!EOJ
The drawback is that ftp is invoked for each file. I don't know if ftp can
utilize indirect files for a "bulk transfer" or not. This may not be the
efficiency you were looking for, but definitely will provide an audit trail.
HTH,
Pat Shugart
Oaksoft Consulting, Inc.
(248) 489-6565
>>> <[log in to unmask]> 12/03/97 03:19pm >>>
I want to move a few thousand relatively small source files (25KB
average) from an NT server to our 3Ks. I know that I should compress
them into one big file so they take less time to transfer, but part of the
reasoning is that by doing this in a job stream, I have a 'paper trail' for the
auditors. Other than this paper trail, is there any advantage to initiating
the get from the 3K? Asked differently, what is the most efficient way of
ftping all of the files in a list of directories from the NT server to the 3K?
Or does it not much matter?
|
|
|