I can do that. That's the same solution for VMS. Program returns a value (either as status or environment variable) and the script branches based in the value. The OP wanted to know if that branch could be directly incorporated inside the program just like READ/END