Thank you for giving response.
First error in printing now got resolved. Actually problem is with udf Define_execute_at_end where i gave file open pointer inside the macro. Now I have kept it before the macro. It is printing correctly now without -1#IND00 values..
😊