this is giving me output dataset with the error RC12
IVALID DATASET NAME, ABC.XYZ.MNO(+0)
WHEN I JUST GIVE ABC.XYZ.MNO, its taking all the versions of this base, but my requirement is to get the current version detials only, can any one please suggest.
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
/RANT ON
When talking about GDS it is important to use the correct terminology, as both version and generation are both valid in terms of a GDS.
It is a well known fact that only one version of a GDS may exist at any one time, however, multiple generations may exist together.
Please learn and use the correct terminology when posting, as using the wrong term can cause confusion and possibly delay a resolution to your problem
/RANT OFF
You CAN NOT use relative addressing in IDCAMS - which I assume you are using within the batch TSO session that you run.