Marcus,
Thank you for your response. My declare cursor statement didn't start in the right column. I have fixed that and the program has compiled. But I am getting a bind error:
BIND PLAN(ADS0281) MEMBER(AFMYPFY1) OWNER(@DSND267)
VALIDATE(BIND) EXPLAIN(YES)
DSNT212I - BIND AUTHORIZATION ID @DSND267 IN THE OWNER KEYWORD
IS INVALID
DSNT201I - BIND FOR PLAN ADS0281 NOT SUCCESSFUL
What does this generally mean? Did I use the wrong Owner? How do I knwo what the right Owner is?
Thanks again!