Joined: 01 Sep 2006 Posts: 2018 Location: Silicon Valley
Not the source of your problem, but...
1. You do not need ALLOCATE and FREE commands... they are not used for
anything and they are sort of expensive.
2. I question the use of single quotes as dataset name delimiters. Not used in LISTDS command; Are used in Allocate command; Are used in EDIT statement; not sure in CPSR assignment. I am not sure it will work correctly when PROFILE PREFIX is used.
3. you should probably check the third line of the LISTDS response to make sure that DSORG=PO.