I have been doing survival tests almost 50 of those for different gene polymorphisms manually, which is comparatively more time consuming compared to the chi-square contingency tables that can be applied to multiple variables by one click under 'Fit X by Y'. I would like to know if there is a way to automate the process, similar to a macro command.