Hi again
it is all good with the DL, now i can copy the files, delete them, stop and cancel the level 1 programs. By hand only 
All this i can do when triggering the $flag[2] - thats what i am using atm.
I am using the variable display - just set KRDLTRIGGERVAR to true and the DL is starting, copying or deleting (depends what i set to true)
What i cannot do is to do that automatically: I am inserting the variables etc in the CELL and i am starting the DL with the flag.
But it seems that the code is not working - it just starting the file TEST.src from the CELL without deleting or copying anything.
Here is the code i am using:
$flag[2] = false
;FOLD WAIT Time=1 sec;%{PE}%R 5.6.13,%MKUKATPBASIS,%CWAIT,%VWAIT,%P 2:1
WAIT SEC 1
;ENDFOLD
krdlcopytokrc=false
krdldeletetarget=true
$flag[2]=true
;FOLD WAIT Time=1 sec;%{PE}%R 5.6.13,%MKUKATPBASIS,%CWAIT,%VWAIT,%P 2:1
WAIT SEC 1
;ENDFOLD
$flag[2]=false
krdldeletetarget=false
krdlcopytokrc=true
$flag[2]=true
;FOLD WAIT Time=1 sec;%{PE}%R 5.6.13,%MKUKATPBASIS,%CWAIT,%VWAIT,%P 2:1
WAIT SEC 1
;ENDFOLD
$flag[2]=false
krdlcopytokrc=false
test()
Display More
What i want to do is:
1. Deleting all from the target directory
2. Copying all from the source directory
3. Executing the key file
4. Repeat
I am correct in using the CELL.SRC or i have to use SPS.SUB for that?
Any help appreciated!