Hello

Just call the method in the middle of the looping so it will not be broken and will continue to traverse after the method return.

 Set Var1=""
 For {
 Set Var1 = $Order(^GLOBAL(Var1))
 Quit:Var1=""
 Set Var2=""
 For {
 Set Var2 = $Order(^GLOBAL(Var1,Var2))
 Quit:Var2=""
 Set Var3=""
 For {
 Set Var3 = $Order(^GLOBAL(Var1,Var2,Var3))
 Quit:Var3=""
 Do ##Class(name.class01).namemethod(Var1,Var2,Var3)
 }
 }
 }