We use the FTPLASTERR as in the script below :
!JOB myJob,user/password.account/password;INPRI=12;&
! OUTCLASS=6,12,1
!FILE WARN;DEV=310
!setjcw jcw = 0
!setjcw currday = hpday
!RUN FTP.ARPA.SYS
OPEN ftp.hp3k.org
USER ftpuser ftppass
cd /home
GET Thisfile.mpef
GET Thatfile.mpef
QUIT
! if FTPLASTERR = 0 THEN
!STREAM Thisjob.JCL
!FCOPY FROM=;TO=FTPMSG
OK
:EOD
! else
!FCOPY FROM=WARNMSGS;TO=*WARN;SUBSET=1231,1
! endif
! if currday < 7 then
!STREAM Thatjob.JCL;IN=1
! endif
! if currday = 7 then
!STREAM Thisjob.JCL;IN=2
! endif
!EOJ
Note that we use the messg file to request a response to the job so it may
continue ...
Matt Hawrysko
[log in to unmask][log in to unmask]
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *