 




<?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: self-submitting cl pgm doesn&#8217;t release screen</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/</link>
	<description></description>
	<lastBuildDate>Sun, 19 May 2013 03:14:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: vatchy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64223</link>
		<dc:creator>vatchy</dc:creator>
		<pubDate>Thu, 04 Jun 2009 15:38:49 +0000</pubDate>
		<guid isPermaLink="false">#comment-64223</guid>
		<description><![CDATA[Just my $.02 but I would change the following code:

&lt;pre&gt;IF COND(&amp;SCREENVALUE *NE ‘Y’) THEN(DO)
GOTO CMDLBL(ENDPGM)
ENDDO

SBMJOB CMD(CALL PGM(CUCYFLSWG) +
PARM(&amp;SCREENVALUE)) JOB(FLS_WAGE)

ENDDO&lt;/pre&gt;

to this:

&lt;pre&gt;IF COND(&amp;SCREENVALUE *EQ ‘Y’) THEN(DO)
SBMJOB CMD(CALL PGM(CUCYFLSWG) +
PARM(&amp;SCREENVALUE)) JOB(FLS_WAGE)
ENDDO

GOTO CMDLBL(ENDPGM)


ENDDO&lt;/pre&gt;

IMHO, positive checks (*EQ) are better, and easier to read, than negative checks (*NE).  Also, this positively ends your program after submitting the job (assuming that there is no processing going on between the ENDPGM label and the ENDPGM command.  However, you might try putting a RCLRSC in-between the ENDPGM label and the ENDPGM command.]]></description>
		<content:encoded><![CDATA[<p>Just my $.02 but I would change the following code:</p>
<pre>IF COND(&amp;SCREENVALUE *NE ‘Y’) THEN(DO)
GOTO CMDLBL(ENDPGM)
ENDDO

SBMJOB CMD(CALL PGM(CUCYFLSWG) +
PARM(&amp;SCREENVALUE)) JOB(FLS_WAGE)

ENDDO</pre>
<p>to this:</p>
<pre>IF COND(&amp;SCREENVALUE *EQ ‘Y’) THEN(DO)
SBMJOB CMD(CALL PGM(CUCYFLSWG) +
PARM(&amp;SCREENVALUE)) JOB(FLS_WAGE)
ENDDO

GOTO CMDLBL(ENDPGM)


ENDDO</pre>
<p>IMHO, positive checks (*EQ) are better, and easier to read, than negative checks (*NE).  Also, this positively ends your program after submitting the job (assuming that there is no processing going on between the ENDPGM label and the ENDPGM command.  However, you might try putting a RCLRSC in-between the ENDPGM label and the ENDPGM command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdraebel</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64201</link>
		<dc:creator>pdraebel</dc:creator>
		<pubDate>Thu, 04 Jun 2009 09:06:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-64201</guid>
		<description><![CDATA[I suspect some file locking in Your RPG subfile program to be the culprit. Check if the file in RPG is defined as U(pdate). Maybe the last record displayed on the subfile is causing the lock.]]></description>
		<content:encoded><![CDATA[<p>I suspect some file locking in Your RPG subfile program to be the culprit. Check if the file in RPG is defined as U(pdate). Maybe the last record displayed on the subfile is causing the lock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mccsteven</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64163</link>
		<dc:creator>mccsteven</dc:creator>
		<pubDate>Tue, 02 Jun 2009 19:08:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-64163</guid>
		<description><![CDATA[the user takes menu option which calls interactively...

CALL CUCYFLSWG PARM(&amp;SCREENVALUE) 


            PGM        PARM(&amp;SCREENVALUE)                
                                                          
             DCL        VAR(&amp;ENV)                        TYPE(*CHAR) LEN(1)
             DCL        VAR(&amp;SCREENVALUE)  TYPE(*CHAR) LEN(1)

             DCLF       FILE(CUPYFLSER) RCDFMT(CURYFLSER)
 
            RTVJOBA    JOB(&amp;JOB) USER(&amp;USER) TYPE(&amp;ENV)                                     
 /*******************************************************/
 /* INTERACTIVE PROCESSING (&amp;ENV = &#039;1&#039;)            */    
 /*******************************************************/
             IF         COND(&amp;ENV *EQ &#039;1&#039;) THEN(DO)
                                                   
             CALL       PGM(CUGYFLSWG) PARM(&amp;SCREENVALUE)        &lt;&lt; this rpg subfile pgm builds
                                                                                                                               file CUPYFLSER, returns a &#039;Y&quot;  
                                                                                                                               the sbmjob runs
                                                                                                                               the batch process runs thru the
                                                                                                                               file CUPYFLSER creatng reports  
                                                                                                                               the screen from the rpg hangsup
                                                                                                                               
                                                                                                                               the CUPY file is manually opened
                                                                                                                               and closed in the RPG. 
              IF         COND(&amp;SCREENVALUE *NE &#039;Y&#039;) THEN(DO)
             GOTO       CMDLBL(ENDPGM)                  
             ENDDO                                      

             SBMJOB     CMD(CALL PGM(CUCYFLSWG) +          
                           PARM(&amp;SCREENVALUE)) JOB(FLS_WAGE)    

             ENDDO
/**************************************************/
/* BATCH PROCESSING (&amp;ENV = &#039;0&#039;)                */  
/**************************************************/
                                                   
             IF         COND(&amp;ENV *EQ &#039;0&#039;) THEN(DO)

LOOP:        RCVF       RCDFMT(CURYFLSER)                         
             MONMSG     MSGID(CPF0864) EXEC(GOTO CMDLBL(ENDREAD)) 
                       /* Monitor for End-Of-File */              
                                                                  
             RUNQRY        QRY(REPORT)
             GOTO   CMDLBL(LOOP)      

ENDREAD:  ENDDO

                       ENDPGM]]></description>
		<content:encoded><![CDATA[<p>the user takes menu option which calls interactively&#8230;</p>
<p>CALL CUCYFLSWG PARM(&amp;SCREENVALUE) </p>
<p>            PGM        PARM(&amp;SCREENVALUE)                </p>
<p>             DCL        VAR(&amp;ENV)                        TYPE(*CHAR) LEN(1)<br />
             DCL        VAR(&amp;SCREENVALUE)  TYPE(*CHAR) LEN(1)</p>
<p>             DCLF       FILE(CUPYFLSER) RCDFMT(CURYFLSER)</p>
<p>            RTVJOBA    JOB(&amp;JOB) USER(&amp;USER) TYPE(&amp;ENV)<br />
 /*******************************************************/<br />
 /* INTERACTIVE PROCESSING (&amp;ENV = &#8217;1&#8242;)            */<br />
 /*******************************************************/<br />
             IF         COND(&amp;ENV *EQ &#8217;1&#8242;) THEN(DO)</p>
<p>             CALL       PGM(CUGYFLSWG) PARM(&amp;SCREENVALUE)        &lt;&lt; this rpg subfile pgm builds<br />
                                                                                                                               file CUPYFLSER, returns a &#8216;Y&#8221;<br />
                                                                                                                               the sbmjob runs<br />
                                                                                                                               the batch process runs thru the<br />
                                                                                                                               file CUPYFLSER creatng reports<br />
                                                                                                                               the screen from the rpg hangsup</p>
<p>                                                                                                                               the CUPY file is manually opened<br />
                                                                                                                               and closed in the RPG.<br />
              IF         COND(&amp;SCREENVALUE *NE &#8216;Y&#8217;) THEN(DO)<br />
             GOTO       CMDLBL(ENDPGM)<br />
             ENDDO                                      </p>
<p>             SBMJOB     CMD(CALL PGM(CUCYFLSWG) +<br />
                           PARM(&amp;SCREENVALUE)) JOB(FLS_WAGE)    </p>
<p>             ENDDO<br />
/**************************************************/<br />
/* BATCH PROCESSING (&amp;ENV = &#8217;0&#8242;)                */<br />
/**************************************************/</p>
<p>             IF         COND(&amp;ENV *EQ &#8217;0&#8242;) THEN(DO)</p>
<p>LOOP:        RCVF       RCDFMT(CURYFLSER)<br />
             MONMSG     MSGID(CPF0864) EXEC(GOTO CMDLBL(ENDREAD))<br />
                       /* Monitor for End-Of-File */              </p>
<p>             RUNQRY        QRY(REPORT)<br />
             GOTO   CMDLBL(LOOP)      </p>
<p>ENDREAD:  ENDDO</p>
<p>                       ENDPGM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yorkshireman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64133</link>
		<dc:creator>yorkshireman</dc:creator>
		<pubDate>Mon, 01 Jun 2009 11:28:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-64133</guid>
		<description><![CDATA[You say the RPG is getting to *INLR ?

is this in the calling or submitted job? 


from your question, I&#039;m supposing something like the following outline. 
or is the subfile program doing the SBMJOB? 


There is no bug in the operating system.  This isn&#039;t a PC. 



- - - - - - - - - - -

PGM  

start:
CALL subfile pgm

IF return = option 99
SBMJOB  Call ABCDE  JOBD(*JOBD)   blah blah 
endif 


IF return = option 45 
blah blah 
endif 


If return = Option F03
goto exit 
endif 

GOTO  start


exit:

endpgm]]></description>
		<content:encoded><![CDATA[<p>You say the RPG is getting to *INLR ?</p>
<p>is this in the calling or submitted job? </p>
<p>from your question, I&#8217;m supposing something like the following outline.<br />
or is the subfile program doing the SBMJOB? </p>
<p>There is no bug in the operating system.  This isn&#8217;t a PC. </p>
<p>- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; -</p>
<p>PGM  </p>
<p>start:<br />
CALL subfile pgm</p>
<p>IF return = option 99<br />
SBMJOB  Call ABCDE  JOBD(*JOBD)   blah blah<br />
endif </p>
<p>IF return = option 45<br />
blah blah<br />
endif </p>
<p>If return = Option F03<br />
goto exit<br />
endif </p>
<p>GOTO  start</p>
<p>exit:</p>
<p>endpgm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mccsteven</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64089</link>
		<dc:creator>mccsteven</dc:creator>
		<pubDate>Fri, 29 May 2009 16:15:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-64089</guid>
		<description><![CDATA[To answer Philip, thanks for your answer. I have checked the code itself and the calling methods, debug shows the RPG stepping through to *INLR.

To Gilly, thank you also, It is a non-ILE cl program, I have renamed the program, compiled it to create a new object, and still had the screen hang up during the batch processing. We were told to get out of the system for upgrades until 1 p.m. so i won&#039;t be able to post the code until 1:30ish. 

Thank you both. I will upload the code about 1.5 hours from now. I really think IBM has an OS error here, I will post the question to IBM this afternoon also.

Steve]]></description>
		<content:encoded><![CDATA[<p>To answer Philip, thanks for your answer. I have checked the code itself and the calling methods, debug shows the RPG stepping through to *INLR.</p>
<p>To Gilly, thank you also, It is a non-ILE cl program, I have renamed the program, compiled it to create a new object, and still had the screen hang up during the batch processing. We were told to get out of the system for upgrades until 1 p.m. so i won&#8217;t be able to post the code until 1:30ish. </p>
<p>Thank you both. I will upload the code about 1.5 hours from now. I really think IBM has an OS error here, I will post the question to IBM this afternoon also.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64082</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Fri, 29 May 2009 15:32:20 +0000</pubDate>
		<guid isPermaLink="false">#comment-64082</guid>
		<description><![CDATA[Hi,

Just another thought - can you post the (CL) code here?  Maybe there&#039;s something else that we haven&#039;t thought of.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Just another thought &#8211; can you post the (CL) code here?  Maybe there&#8217;s something else that we haven&#8217;t thought of.</p>
<p>Regards,</p>
<p>Martin Gilbert.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gilly400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/self-submitting-cl-pgm-doesnt-release-screen/#comment-64081</link>
		<dc:creator>gilly400</dc:creator>
		<pubDate>Fri, 29 May 2009 15:31:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-64081</guid>
		<description><![CDATA[Hi,

If it&#039;s a non-ILE CL program maybe it&#039;s an idea to do a RTVCLSRC to make sure the source matches the object.  Quite often programmers (myself included) code an interactive call and a submitted call in their program to help while debugging.  Maybe the interactive call is still in the program?

Are you sure that a job gets submitted?  Try changing the logging level of your job and check the joblog.

Regards,

Martin Gilbert.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If it&#8217;s a non-ILE CL program maybe it&#8217;s an idea to do a RTVCLSRC to make sure the source matches the object.  Quite often programmers (myself included) code an interactive call and a submitted call in their program to help while debugging.  Maybe the interactive call is still in the program?</p>
<p>Are you sure that a job gets submitted?  Try changing the logging level of your job and check the joblog.</p>
<p>Regards,</p>
<p>Martin Gilbert.</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 6/9 queries in 0.012 seconds using memcached
Object Caching 352/355 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 05:07:09 -->