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

How to handle SQL return code in JCL


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

New User


Joined: 24 Jan 2007
Posts: 59
Location: Texas

PostPosted: Tue Jun 19, 2007 9:10 pm
Reply with quote

Hi,

I have an sql query which runs in one job step.Based on the return code of that query i want to control the execution of subsequent steps.The query is directly coded and executed in the job step and not in any program.Is there a way to determine this in a JCL....?

Thanks in advance,

Rarvins
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jun 19, 2007 10:14 pm
Reply with quote

rarvins wrote:
Hi,

I have an sql query which runs in one job step.Based on the return code of that query i want to control the execution of subsequent steps.The query is directly coded and executed in the job step and not in any program.Is there a way to determine this in a JCL....?

Thanks in advance,

Rarvins

icon_sad.gif
I find that rather hard to believe, there has to be a program executing the sql. It might not be a program you wrote but there is one there.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jun 19, 2007 11:32 pm
Reply with quote

Hello,

Please post whatever is submitted for this job.

We can offer suggestions from there.
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 Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top