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

Repro OUTFILE error


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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri May 10, 2013 4:54 pm
Reply with quote

did You care to read Pandora-box quote from the manual ???
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri May 10, 2013 4:57 pm
Reply with quote

OUTDATASET worked because it was using the "new" VSAM dataset.

Read what people have posted. If you have to use OUTDD, you'll need to either not delete it at all, or delete/define in a previous step.

Choice from those options is yours, but you can't choose a different option which doesn't work, and which is documented as not working.
Back to top
View user's profile Send private message
Sheerin banu

New User


Joined: 10 Apr 2013
Posts: 10
Location: INDIA

PostPosted: Fri May 10, 2013 5:27 pm
Reply with quote

Thanks all for your valuable comments ..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 10, 2013 6:34 pm
Reply with quote

Quote:
Hi , when i gave REPRO in differnt step it worked , but cant i use in same step ... ?
I think OUTDATASET worked with same step because it makes a exclusive lock on the DATASET ..
correct me if im wrong.

Also to clarify the file i delete is same as the file i create .
You are wrong. OUTDATASET works because it is referencing the NEW data set, not the OLD data set. Putting the REPRO (or the DELETE) in a separate step works because you are then referencing the NEW data set with the OUTFILE. Putting it all in one step will not work because JES allocates the files before the step executes, so using OUTFILE means you are attempting to write data to a data set that no longer exists -- hence the 168 return code.

And the file you delete is the same you create -- we got that the first post. However, the file you REPRO to is not the same as the file you create when using OUTFILE in the same step. This is what you did not get.
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top