IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem with LISTCAT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mazahar

New User


Joined: 11 Dec 2007
Posts: 82
Location: hyderabad

PostPosted: Wed Dec 02, 2009 9:20 pm
Reply with quote

Hi All,

I am using LISTCAT to get the dataset name, but i am getting below problem, can you please assist.

Code:
//STEP01 EXEC PGM=IKJEFT01,
//                     PARM='LISTCAT ENT(''ABC.XYZ.MNO(+0)'') ALL'
//SYSTSPRT  DD  DSN=X.Y.Z,DISP=(NEW,CATLG),
//                        DCB=(LRECL=80,RECFM=FB,BLKSIZE=0)
//SYSTSIN  DD *

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.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Dec 02, 2009 9:33 pm
Reply with quote

/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.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Dec 02, 2009 9:35 pm
Reply with quote

You have to provide the real dataset name, i.e.:

LISTCAT ENT('ABC.XYZ.MNO.G0001V00') ALL
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
No new posts Need to add field to copybook, proble... COBOL Programming 14
Search our Forums:

Back to Top