Joined: 24 Mar 2005 Posts: 106 Location: Douglasville, GA USA
A 16 return code indicates an error occurred, most likely the dataset was not found. If you do not include the dataset in apostraphes it will append your file prefix onm the beginnig. code the lstdsi:
rtn = listdsi('MYPREFX.MYGROUP.LIBRARY')
or
rtn = listdsi("'"rexx_var"'")