I have a program which has one variable defined as Def var a as int. ( There is no NO-UNDO) . And when in code i have return code in repeat loop and when the code is before FTP and i press CTRL-C the value is getting UNDONE but when user presses the ctrl-c when in FTP process the value is not getting restored.Can someone please help me on this. Below is the code sample...
Code:
define variable l_seq as integer.
repeat on error undo, retry:
---------------------
--------------
(User presses ctrl-c it works fine value of l_seq is restored)
/* FTP logic */
output to value(l_script).
put unformatted
trim(code_value) > log.txt 2>&1 skip
trim(code_cmmt) skip
"put " l_op_file skip
"bye" skip
"Try" skip.
output close.
(User presses ctrl-c when FTP process is executing the value is not UNDONE ...)
unix silent chmod 777 value (l_script).
unix silent ksh value (l_script).
unix silent rm value (l_script).
END. /*Repeat */