On Wed, 9 Sep 2020 at 10:08, Lionel Dyck <lbd...@gmail.com> wrote: > Is there a way with PIPE MEMBERS to have it process all members? >
Sure, you're right about the LISTPDS (or LISTISPF) to produce the member names like that. You need to specify the dataset again with the MEMBERS stage (the MEMBERS stage has no idea that you got that list from the LISTPDS). Like this: listpds fplom maclib s | substr 1.8 | members fplom maclib s | count lines | cons But normally you want to do something to identify the member that produced the content, something like this maybe: PIPE (END \) listpds fplom maclib s | substr 1.8 | o: fanout | pad 9 | j: juxtapose | cons \ o: | members fplom maclib s | locate ,ISPF, | j: This selects the records that contain the specified string, and JUXTAPOSE prefixes them with the name of the member that contains the data. There's no fancy wildcard selection in MEMBERS. If you'd want to select a subset of the members, that's something you do with separate stages on the output of LISTPDS before you feed the records to MEMBERS. On z/OS you could even use the extra information that ISPF keeps in the PDS directory. Sir Rob the Plumber