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

How to check VSAM status code in JCL?


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

New User


Joined: 10 Aug 2007
Posts: 7
Location: india

PostPosted: Tue Jun 10, 2008 6:37 pm
Reply with quote

Hi,

I have have a JCL step which uses IDCAMS utility to copy a VSAM file to a tape file. But the VSAM file is a empty file. So the JCL step throws me a return code of 12, with VSAM status code as 160(error while openining a empty VSAM file).

Now can i check this VSAM status code of 160 in JCL itself and make it 0, so that it can continue with the next step....????
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Jun 10, 2008 6:41 pm
Reply with quote

You can't. You can only check the Return-Code within IDCAMS with the IF/THEN/ELSE statements to set a value for MAXCC. There are examples in this forum.
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top