How to get Dsname current generation

138 Views Asked by At

I have these datasets.

FILE.AB1.NAME.G1000V00

FILE.AB2.NAME.G1000V00

FILE.AB3.NAME.G1000V00

When I enter FILE.AB1.NAME(0) I get FILE.AB1.NAME.G1000V00.

But when I enter FILE.*.NAME(0), I get "No data set names found"

How can I get all the following listed using (0)?

FILE.AB1.NAME.G1000V00

FILE.AB2.NAME.G1000V00

FILE.AB3.NAME.G1000V00
1

There are 1 best solutions below

1
ffx-xp On

If you use

(0)

at the end of the dataset name you will get the latest generation of a Generation Data Group (GDG). If you use

(-1)

you will get the penultimate generation of the GDG and so on.

If you want to list all datasets with the same generation you could use

FILE.**.G1000V00