Paul is spot on - and you can use BPXWDYN to concatenate as well. See examples here https://www.ibm.com/docs/en/zos/3.1.0?topic=output-examples-calling-bpxwdyn-from-rexx-program
Lionel B. Dyck <>< Github: https://github.com/lbdyck “Worry more about your character than your reputation. Character is what you are, reputation merely what others think you are.” - - - John Wooden -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Paul Gilmartin Sent: Friday, December 29, 2023 9:41 AM To: [email protected] Subject: Re: Checking status of multiple datasets in CLIST and REXX On Fri, 29 Dec 2023 14:47:29 +0000, Seymour J Metz wrote: >I need to check whether any of a list of datasets exists and whether any of a >list of ddnames is allocated. I'd rather not trap and parse the output of >LISTALC and LISTCAT, and I'd rather not call LISTDSI for each one. Is there a >simple way to do that in REXX, or would it be better to write a small service >routine in assembler? > How useful would BPXWDYN(INFO ,,,) be? <https://www.ibm.com/docs/en/zos/3.1.0?topic=output-requesting-allocation-information> -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
