• First, only partial code in your post, so not a real help. Second, why do you need to create a cursor dynamically? What are you try to accomplish?

    😎