Hello Team,
I have list of files and I would like to know which file is ESDS among those files using REXX. I thought of using LISTCAT but not sure how to use it in REXX. Please assist.
x = OUTTRAP( 'LISTING.' ) /* reroute output to REXX stem */
"TSO LISTDS ...parameters...." /* execute TSO command */
y = OUTTRAP( 'OFF' ) /* stop rerouting */
/* analyze LISTDS output line-by-line */
Do I = 1 To LISTING.0
Say LISTING.I
End I