Hi we are trying to migrate open VMS script to ksh unix scripts
in open vms we have goto concept which is not possible in ksh shell scripting .
Is there any other alternative fo this?
I got one solution for this but it is not working correctly,here i just replaced the blocks with functions and in place of goto i am using condition check to flow the control to functions in place of blocks.
But here there is a problem with function call, because ksh unix shell script is not not having compiler it runs step by step (interpreter).
so where ever i find blocks i will replace with functions.
I have to declare the function prior to function call otherwise i wont work for the first time.
Even though if i declare the functions first and function calls next it makes the program structure very complex
so my straight question is what will be the best alternative for goto in ksh ?
Thanks very much in advance
Hoping that you will provide me best solution