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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts Problem with GETMAIN command amitc23 CICS 6 Thu Sep 01, 2016 1:01 pm


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