I used a dataset in my rexx prog like -
DSNAME = TEST.TPLASM.CATLIST
ADDRESS TSO
"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.
EXECIO ... count ... ( ... - as many times as needed
... for the last I/O operation
EXECIO ... count ... ( ... FINIS - to close the file, if a regular I/O
... or
EXECIO ... 0 ... ( FINIS - to close the file, on a standalone close