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

Dataset can not be cataloged


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

New User


Joined: 10 Dec 2008
Posts: 12
Location: Bangalore

PostPosted: Thu Oct 22, 2009 7:48 am
Reply with quote

Hi,

In my job in first step I am deleting the dataset created by a sort step.2nd step I am sorting the input file and creating the file which was already deleted. Here I have given Disp parameter as (New,catlg,delete). And in the third step I am using this file as an input to a pgm.

When I first run this job it ran sucessfully. From 2nd run onwards it is giving JCL error saying dataset can not be cataloged. But I couldsee in first step the dataset is deleted sucessfully.

Can anyone give me an idea what could be the reason for this error?

Thanks,
Indus
Back to top
View user's profile Send private message
Steve Davies

New User


Joined: 15 Oct 2009
Posts: 32
Location: UK

PostPosted: Thu Oct 22, 2009 7:57 am
Reply with quote

Iy wouldbe helpful if you post your JCL and error message.
Back to top
View user's profile Send private message
jerryli

New User


Joined: 21 Sep 2009
Posts: 2
Location: Taipei

PostPosted: Mon Nov 02, 2009 2:09 pm
Reply with quote

Can you try using disposition (MOD,DELETE) in the first step?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Nov 02, 2009 2:38 pm
Reply with quote

jerryli wrote:
Can you try using disposition (MOD,DELETE) in the first step?

Please wait until the OP finally bothers to post the requested information so that we can see what the problem is before offering suggestions.

Who knows what the problem might be, and until the info is posted, we certainly will not.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Nov 02, 2009 3:02 pm
Reply with quote

indus--I agree with Steve & Expat, however i dare to offer a suggestion. Unless you're using something like UCC11(RMS) what you said won't work. May be you can include the delete step as the last step of JCL, but yes that depends on what you said in first post and you mean that.
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top