I am creating step1_file that indicates that step1 has been executed successfully. If any error comes then that step${n}_file will not be created.
How this to implement in main script.
Are you indicating something like, create label and then use GO TO ?