On Sun, 19 Oct 2025 11:31:24 +0300, Itschak Mugzach <[email protected]> wrote:
>This is my solution: > Queue 'dir' > "ftp 10.100.102.211" > "ExecIO * DiskR OUTPUT (Stem Dir." DD OUTPUT doesn't capture the messages from the FTP command. If you want to make this exec run, then I suggest using he REXX FTP API which will allow you to capture the DIR command output and it's return code. Alternatively, SYSOUTTRAP can captures the complete FTP output. I'm guessing that FTP DIR is not providing all the dataset attributes you want (e.g. dir blocks, library vs pds, VSAM attributes). Since running FTP does not provide any alternatives to dataset info, your exec must be run from the same system where the datasets reside. Your solution implies both sides are MVS. We are still confused about the problem you want to solve. Instead of FTP, there may be better alternatives like RCP, RSH or ???. Even telnet may solve your problem since TSO has linemode capabilities. As for obtaining the list of datasets and the attributes, there are many to choose (LMD, DSINFO, LISTCAT, VTOC, LISTDSI, ...). ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
