﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Teradata  / Teradata Tools and Utilities  / RC in bteq / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 20:39:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: RC in bteq</title><link>http://www.teradata.com/teradataforum/Topic11198-10-1.aspx</link><description>hi,you can set an error code based on the activitycount.have the below stmt right after your DML stmt:.IF ACTIVITYCOUNT&amp;lt;&amp;gt;0 THEN .QUIT 50;this will make your parm and in turn your JOB STEP fail(i.e errorcode or returncode&amp;lt;&amp;gt;0) and you can have a condition stmt in your PROC STEP to restart from a STEP in the jcl by checking this return code in the PROC.hope this helps!</description><pubDate>Fri, 25 Apr 2008 14:59:34 GMT</pubDate><dc:creator>SN</dc:creator></item><item><title>RC in bteq</title><link>http://www.teradata.com/teradataforum/Topic11198-10-1.aspx</link><description>Hi,Is it possible to manually set a return code(RC) in a bteq. I need to restart the JCL based on a condition like .IF ACTIVITYCOUNT&amp;lt;&amp;gt;0(present in my BTEQ script) then restart jcl else quit.The JCL should be automatically restarted based on the activitycount. Is there any way to achieve it?Any suggestions would be useful...Thanks</description><pubDate>Thu, 10 Apr 2008 09:53:46 GMT</pubDate><dc:creator>shanthuj</dc:creator></item></channel></rss>