Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem with LISTCAT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Problem with LISTCAT
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: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 02, 2009 9:33 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Dec 02, 2009 9:35 pm    Post subject: Reply to: Problem with LISTCAT
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us