 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: STRSRVJOB not working for a batch job.</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/strsrvjob-not-working-for-a-batch-job/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/strsrvjob-not-working-for-a-batch-job/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 07:13:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/strsrvjob-not-working-for-a-batch-job/#comment-70291</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 12 Nov 2009 02:23:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-70291</guid>
		<description><![CDATA[If you insist on doing things the hard way, try using SEPs through the green-screen -- &lt;a href=&quot;http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/18805p1.aspx&quot;&gt;Debugging RPG IV Programs -- The Green-Screen Way&lt;/a&gt;.

Maybe that will help you work out how to get the jobs to stop when you want them to.

Tom]]></description>
		<content:encoded><![CDATA[<p>If you insist on doing things the hard way, try using SEPs through the green-screen &#8212; <a href="http://www.ibmsystemsmag.com/ibmi/enewsletterexclusive/18805p1.aspx">Debugging RPG IV Programs &#8212; The Green-Screen Way</a>.</p>
<p>Maybe that will help you work out how to get the jobs to stop when you want them to.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adassaad</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/strsrvjob-not-working-for-a-batch-job/#comment-70288</link>
		<dc:creator>adassaad</dc:creator>
		<pubDate>Thu, 12 Nov 2009 01:48:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-70288</guid>
		<description><![CDATA[Thanks for the help Charlie.
I got it working after I quit trying to do STRISDB and signed off then on then dis STRSRVJOB then STRDBG (not STRISDB). Of course I had to recompile all OPM programs with OPTION(*SRCDBG) after I couldn&#039;t see the code with STRDBG.
I like STRISDB for the OPM programs because of F13 availaibilty (Run to cursor) which I could not do with STRDBG.
Thanks again.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the help Charlie.<br />
I got it working after I quit trying to do STRISDB and signed off then on then dis STRSRVJOB then STRDBG (not STRISDB). Of course I had to recompile all OPM programs with OPTION(*SRCDBG) after I couldn&#8217;t see the code with STRDBG.<br />
I like STRISDB for the OPM programs because of F13 availaibilty (Run to cursor) which I could not do with STRDBG.<br />
Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliebrowne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/strsrvjob-not-working-for-a-batch-job/#comment-70284</link>
		<dc:creator>charliebrowne</dc:creator>
		<pubDate>Wed, 11 Nov 2009 22:44:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-70284</guid>
		<description><![CDATA[After the STRSRVJOB
try STRDBG pgmname UPDPROD(*YES)]]></description>
		<content:encoded><![CDATA[<p>After the STRSRVJOB<br />
try STRDBG pgmname UPDPROD(*YES)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teandy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/strsrvjob-not-working-for-a-batch-job/#comment-70277</link>
		<dc:creator>teandy</dc:creator>
		<pubDate>Wed, 11 Nov 2009 21:09:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-70277</guid>
		<description><![CDATA[If this is a CL add this line of code at the start of your program..

DLYJOB  DLY(60).

This will give you 60 seconds after the job is submitted to start the service job and then start DEBUG.  If you need more time, just increase the number of seconds you want the job to wait.

If this is an RPGLE program you can delay the job like so:

&lt;pre&gt;

D  CMD            S           3000A   VARYING 

 *********************************************************************  
 * PROTOTYPE FOR QCMDEXEC API (EXECUTE COMMAND)                         
 *********************************************************************  
D QCMDEXC         PR                  ExtPgm(&#039;QCMDEXC&#039;)                 
D   COMMAND                   3000A   const options(*varsize)           
D   Length                      15P 5 const                             

 /free

  CMD = &#039;DLYJOB DLY(60)&#039;;            
                                  
  CALLP QCMDEXC(CMD : %LEN(CMD));   

 /end-free

&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>If this is a CL add this line of code at the start of your program..</p>
<p>DLYJOB  DLY(60).</p>
<p>This will give you 60 seconds after the job is submitted to start the service job and then start DEBUG.  If you need more time, just increase the number of seconds you want the job to wait.</p>
<p>If this is an RPGLE program you can delay the job like so:</p>
<pre>

D  CMD            S           3000A   VARYING 

 *********************************************************************  
 * PROTOTYPE FOR QCMDEXEC API (EXECUTE COMMAND)                         
 *********************************************************************  
D QCMDEXC         PR                  ExtPgm('QCMDEXC')                 
D   COMMAND                   3000A   const options(*varsize)           
D   Length                      15P 5 const                             

 /free

  CMD = 'DLYJOB DLY(60)';            
                                  
  CALLP QCMDEXC(CMD : %LEN(CMD));   

 /end-free

</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: adassaad</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/strsrvjob-not-working-for-a-batch-job/#comment-70275</link>
		<dc:creator>adassaad</dc:creator>
		<pubDate>Wed, 11 Nov 2009 20:14:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-70275</guid>
		<description><![CDATA[thanks for the reply.
I&#039;m sure of the job number because the I copy and paste the job qualifier from the submit message while the job is held by the JOBD with Hold(*YES .).
I do the STRSRV and paste the &#039;Job 642482/user/jobname&#039;, it takes it w/o problem.
Job still on hold on jobq, I enter STRISDB PGM(pgmname) UPDPROD(*YES) INVPGM(*NO). The job is held on the jobq, I get these errors:
Error occurred setting the first breakpoint.             
Command is not allowed while serviced job is not active. 
Errors occurred on command.                              
.]]></description>
		<content:encoded><![CDATA[<p>thanks for the reply.<br />
I&#8217;m sure of the job number because the I copy and paste the job qualifier from the submit message while the job is held by the JOBD with Hold(*YES .).<br />
I do the STRSRV and paste the &#8216;Job 642482/user/jobname&#8217;, it takes it w/o problem.<br />
Job still on hold on jobq, I enter STRISDB PGM(pgmname) UPDPROD(*YES) INVPGM(*NO). The job is held on the jobq, I get these errors:<br />
Error occurred setting the first breakpoint.<br />
Command is not allowed while serviced job is not active.<br />
Errors occurred on command.<br />
.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.038 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 09:16:58 -->