ABORT-ON-ERROR Script Sample

This sample code sets ABORT-ON-ERROR to NO before using MGET and back to YES before using MDEL or PUT.

SET ABORT-ON-ERROR NO
CD /home/user1/reports
CONTINUE ON
MGET june*.rpt
CD /home/user2/reports
MGET june*.rpt
SET ABORT-ON-ERROR YES
MDEL june*.rpt
CD /home/user1/reports
MDEL june*.rpt
SET ABORT-ON-ERROR NO
CD /home/yearly
CONTINUE
MGET ye20*.rpt,ye20*.txt
SET ABORT-ON-ERROR YES
CD /tmp
PUT ye2000.txt
PUT ye2000.rpt ye2000.txt APPEND