I used a dataset in my rexx prog like -
DSNAME = TEST.TPLASM.CATLIST
"ALLOC DD(STAC) DA('"DSNAME"') SHR REUSE"
"EXECIO * DISKR STAC (STEM X. OPEN"
In first part of my prog i am calling this subrtn and it is working fine
but in the 2nd part of my prog if i call this part again it is showing error like-' FILE STAC NOT UNALLOCATED, DATA SET IS OPEN "
so i need to unallocate the dataset and then again should use it.but can anybody tell me how to unallocate a DS in same prog after using it.