 




<?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: Time counting in reverse order</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 13:24:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: TomLiotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-115925</link>
		<dc:creator>TomLiotta</dc:creator>
		<pubDate>Wed, 06 Feb 2013 06:41:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-115925</guid>
		<description><![CDATA[&lt;EM&gt;Give a code such that in a clock...&lt;/EM&gt;
&#160;
Why? That is, can you provide a &lt;EM&gt;business reason&lt;/EM&gt; why we should? This seems too much like an academic exercise rather than something needed for a useful work function.
&#160;
If you need academic help, start by showing us the code that you have developed so far and explaining the obstacle that locks you from going farther.
&#160;
Tom]]></description>
		<content:encoded><![CDATA[<p><em>Give a code such that in a clock&#8230;</em><br />
&nbsp;<br />
Why? That is, can you provide a <em>business reason</em> why we should? This seems too much like an academic exercise rather than something needed for a useful work function.<br />
&nbsp;<br />
If you need academic help, start by showing us the code that you have developed so far and explaining the obstacle that locks you from going farther.<br />
&nbsp;<br />
Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: amit005</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-115924</link>
		<dc:creator>amit005</dc:creator>
		<pubDate>Wed, 06 Feb 2013 05:49:33 +0000</pubDate>
		<guid isPermaLink="false">#comment-115924</guid>
		<description><![CDATA[Give a code such that in a clock&#160; second hand work as minute hand, minute hand work as a hour hand and hour hand work as a second hand.... code should be in c language........&lt;br&gt;]]></description>
		<content:encoded><![CDATA[<p>Give a code such that in a clock&nbsp; second hand work as minute hand, minute hand work as a hour hand and hour hand work as a second hand&#8230;. code should be in c language&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: filuphaze</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-100644</link>
		<dc:creator>filuphaze</dc:creator>
		<pubDate>Tue, 20 Dec 2011 15:05:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-100644</guid>
		<description><![CDATA[You don&#039;t need the F1 code for my example.  It was some extra code I mistakenly copied and is only used for help not used for your example.   I was just showing how I use a 20 second response time.  You can modify it however you like.]]></description>
		<content:encoded><![CDATA[<p>You don&#8217;t need the F1 code for my example.  It was some extra code I mistakenly copied and is only used for help not used for your example.   I was just showing how I use a 20 second response time.  You can modify it however you like.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdsathishkumar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-100551</link>
		<dc:creator>pdsathishkumar</dc:creator>
		<pubDate>Sun, 18 Dec 2011 15:55:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-100551</guid>
		<description><![CDATA[i solve this program problem.... 

when i press F1, i got this error - CPF4737 -  wait time error... how to solve this problem..]]></description>
		<content:encoded><![CDATA[<p>i solve this program problem&#8230;. </p>
<p>when i press F1, i got this error &#8211; CPF4737 &#8211;  wait time error&#8230; how to solve this problem..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdsathishkumar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-100550</link>
		<dc:creator>pdsathishkumar</dc:creator>
		<pubDate>Sun, 18 Dec 2011 15:46:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-100550</guid>
		<description><![CDATA[i can&#039;t to declare like that

STATUS            *STATUS

how to declare this statement in D - spec..]]></description>
		<content:encoded><![CDATA[<p>i can&#8217;t to declare like that</p>
<p>STATUS            *STATUS</p>
<p>how to declare this statement in D &#8211; spec..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-100549</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sun, 18 Dec 2011 14:56:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-100549</guid>
		<description><![CDATA[Sure, you provided better info, but apparently you&#039;ve moved on from this point based on your later thread

The error detected during compiling is on line 804 .. which would help if you had posted line numbers or you could have used to find the error.  I suspect that it&#039;s 
status=1331 since you declared status as alpha in the d-spec dstatus 11 15
and try to compare it with a numeric.  The code you used as a model defined status as type *STATUS
*STATUS is 11  15  Zoned decimal  5,0  *STATUS  Status code. 
http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c092508378.htm#HDRFLFEED
Change the definition of status to 11  15 S  0  or as *STATUS

Phil]]></description>
		<content:encoded><![CDATA[<p>Sure, you provided better info, but apparently you&#8217;ve moved on from this point based on your later thread</p>
<p>The error detected during compiling is on line 804 .. which would help if you had posted line numbers or you could have used to find the error.  I suspect that it&#8217;s<br />
status=1331 since you declared status as alpha in the d-spec dstatus 11 15<br />
and try to compare it with a numeric.  The code you used as a model defined status as type *STATUS<br />
*STATUS is 11  15  Zoned decimal  5,0  *STATUS  Status code.<br />
<a href="http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c092508378.htm#HDRFLFEED" rel="nofollow">http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c092508378.htm#HDRFLFEED</a><br />
Change the definition of status to 11  15 S  0  or as *STATUS</p>
<p>Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdsathishkumar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-100536</link>
		<dc:creator>pdsathishkumar</dc:creator>
		<pubDate>Sun, 18 Dec 2011 07:12:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-100536</guid>
		<description><![CDATA[Mr. Phil, i show my program...  check it plz... 

display file coding..

 A                                      DSPSIZ(24 80 *DS3)       
 A                                      INVITE                   
 A          R SCREEN1                                            
 A                                      CA03(03 &#039;exit&#039;)          
 A                                      CF01(01 &#039;help&#039;)          
 A                                  1 19&#039;TEST WAITRCD PARAMETER&#039; 
 A                                      DSPATR(HI)               
 A                                      DSPATR(UL)               
 A                                  9 28&#039;INPUT:&#039;                 
 A            INPUT          1A  B  9 35                         
 A                                 22  7&#039;F3=EXIT&#039;                
 A                                      COLOR(BLU)               

rpgle coding..

Fautodsp1  cf   e             workstn infds(infds)                     
F                                     Maxdev(*file)                    
Dinfds            ds                                                   
dstatus                  11     15                                     
dcfkey                  369    369                                     
Dexit             c                   const(X&#039;33&#039;)                     
Dcancel           c                   const(X&#039;3C&#039;)                     
Dprompt           c                   const(X&#039;34&#039;)                     
Denter            c                   const(X&#039;F1&#039;)                     
C                   dou       ((cfkey = exit) or (cfkey = cancel))     
C                   write     screen1                                  
C                   read      autodsp1                             99lr
C                   if        ((*in99 = *on) and (status=1331))        
 *                 call your program or process                        
C                   endif                                              
C                   if        (*in01 = *on)                            
C                   call      &#039;HELP&#039;                               
C                   parm      &#039;SCREEN&#039;      screen           10    
C                   parm      9             crow             15 5  
C                   parm      35            ccol             15 5  
C                   parm                    return            2    
C                   endif                                          
C                   enddo                                          
C                   eval      *inlr = *on                          

i getting this error.. *RNF7421 30     17 000804  Operands are not compatible with the type of operator.]]></description>
		<content:encoded><![CDATA[<p>Mr. Phil, i show my program&#8230;  check it plz&#8230; </p>
<p>display file coding..</p>
<p> A                                      DSPSIZ(24 80 *DS3)<br />
 A                                      INVITE<br />
 A          R SCREEN1<br />
 A                                      CA03(03 &#8216;exit&#8217;)<br />
 A                                      CF01(01 &#8216;help&#8217;)<br />
 A                                  1 19&#8242;TEST WAITRCD PARAMETER&#8217;<br />
 A                                      DSPATR(HI)<br />
 A                                      DSPATR(UL)<br />
 A                                  9 28&#8242;INPUT:&#8217;<br />
 A            INPUT          1A  B  9 35<br />
 A                                 22  7&#8242;F3=EXIT&#8217;<br />
 A                                      COLOR(BLU)               </p>
<p>rpgle coding..</p>
<p>Fautodsp1  cf   e             workstn infds(infds)<br />
F                                     Maxdev(*file)<br />
Dinfds            ds<br />
dstatus                  11     15<br />
dcfkey                  369    369<br />
Dexit             c                   const(X&#8217;33&#8242;)<br />
Dcancel           c                   const(X&#8217;3C&#8217;)<br />
Dprompt           c                   const(X&#8217;34&#8242;)<br />
Denter            c                   const(X&#8217;F1&#8242;)<br />
C                   dou       ((cfkey = exit) or (cfkey = cancel))<br />
C                   write     screen1<br />
C                   read      autodsp1                             99lr<br />
C                   if        ((*in99 = *on) and (status=1331))<br />
 *                 call your program or process<br />
C                   endif<br />
C                   if        (*in01 = *on)<br />
C                   call      &#8216;HELP&#8217;<br />
C                   parm      &#8216;SCREEN&#8217;      screen           10<br />
C                   parm      9             crow             15 5<br />
C                   parm      35            ccol             15 5<br />
C                   parm                    return            2<br />
C                   endif<br />
C                   enddo<br />
C                   eval      *inlr = *on                          </p>
<p>i getting this error.. *RNF7421 30     17 000804  Operands are not compatible with the type of operator.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-100514</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Sat, 17 Dec 2011 15:32:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-100514</guid>
		<description><![CDATA[If you&#039;re planning to program you need to learn how to track down problems and solve them!  

Someone was nice enough to share a chunk of code with you -- you fix it and share the solution with the rest of us!

You got an error message during compile?  Investigate the compile listing, it will tell you the line of the error.  Apparently you need to check the types of the variables on that line.  Make some effort, please.]]></description>
		<content:encoded><![CDATA[<p>If you&#8217;re planning to program you need to learn how to track down problems and solve them!  </p>
<p>Someone was nice enough to share a chunk of code with you &#8212; you fix it and share the solution with the rest of us!</p>
<p>You got an error message during compile?  Investigate the compile listing, it will tell you the line of the error.  Apparently you need to check the types of the variables on that line.  Make some effort, please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pdsathishkumar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-100513</link>
		<dc:creator>pdsathishkumar</dc:creator>
		<pubDate>Sat, 17 Dec 2011 15:14:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-100513</guid>
		<description><![CDATA[Mr. Steve Winfrey, i tried your tips, but i didn&#039;t get the answer.....

i got the error -- Operands are not compatible with the type of operator. 

if u have anther solution, share me.....]]></description>
		<content:encoded><![CDATA[<p>Mr. Steve Winfrey, i tried your tips, but i didn&#8217;t get the answer&#8230;..</p>
<p>i got the error &#8212; Operands are not compatible with the type of operator. </p>
<p>if u have anther solution, share me&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: filuphaze</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-counting-in-reverse-order/#comment-99968</link>
		<dc:creator>filuphaze</dc:creator>
		<pubDate>Thu, 08 Dec 2011 15:10:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-99968</guid>
		<description><![CDATA[Here is sample code and dds of a program I use to prompt user for an answer and after 20 second delay of no input it executes a call or other process.



FDsp000d1  cf   e             workstn infds(infds)           
F                                     Maxdev(*file)          
Dinfds            ds                                         
D status            *status                                  
D cfkey                 369    369                           
D                                                            
Dexit             C                   const(X&#039;33&#039;)           
Dcancel           C                   const(X&#039;3C&#039;)           
Dprompt           C                   const(X&#039;34&#039;)           
Denter            C                   const(X&#039;F1&#039;)           
 *                                                           
  *****************************************************************      
  *  Main Routine                                                        
  *****************************************************************      
  *                                                                      
 C                   dou       (cfkey = exit) or (cfkey = cancel)        
  *                                                                      
 C                   write     screen1                                   
 C                   read      dsp000d1                             99lr 
 C                   if        *in99 = *on and status=1331               
 C                   call     your program or process                                   
 C                   endif                                               
 C                   if        *in01 = *on                               
 C                   call      &#039;HELP&#039;                                    
 C                   parm      &#039;SCREEN1&#039;     Screen           10         
 C                   parm      9             crow             15 5       
 C                   parm      35            ccol             15 5       
 C                   parm                    return            2         
   C                   endif                       
  *                                              
 C                   enddo                       
  *                                              
 C                   eval      *inlr = *on       
  *                                                                                                                     

Display specs

 A*                                                               
 A* CRTDSPF FILE(XXX/DSP000D1) SRCFILE(XXX/QDDSSRC) +             
 A*       MBR(DSP000D1) WAITRCD(20)  &lt;=== DELAY SECONDS(1-32767)  
 A*                                                               
 A*%%EC                                                           
 A                                      DSPSIZ(24 80 *DS3)        
 A                                      CA01(01 &#039;HELP&#039;)           
 A                                      CA03(03 &#039;EXIT&#039;)          
 A                                      INVITE                   
 A*                                                              
 A          R SCREEN1                                            
 A                                  1 19&#039;TEST WAITRCD PARAMETER&#039; 
 A                                      DSPATR(HI)               
    A                                      DSPATR(UL)    
 A                                  9 28&#039;INPUT:&#039;      
 A            INPUT          1A  B  9 35              
 A                                 22  7&#039;F3=Exit&#039;     
 A                                      COLOR(BLU)]]></description>
		<content:encoded><![CDATA[<p>Here is sample code and dds of a program I use to prompt user for an answer and after 20 second delay of no input it executes a call or other process.</p>
<p>FDsp000d1  cf   e             workstn infds(infds)<br />
F                                     Maxdev(*file)<br />
Dinfds            ds<br />
D status            *status<br />
D cfkey                 369    369<br />
D<br />
Dexit             C                   const(X&#8217;33&#8242;)<br />
Dcancel           C                   const(X&#8217;3C&#8217;)<br />
Dprompt           C                   const(X&#8217;34&#8242;)<br />
Denter            C                   const(X&#8217;F1&#8242;)<br />
 *<br />
  *****************************************************************<br />
  *  Main Routine<br />
  *****************************************************************<br />
  *<br />
 C                   dou       (cfkey = exit) or (cfkey = cancel)<br />
  *<br />
 C                   write     screen1<br />
 C                   read      dsp000d1                             99lr<br />
 C                   if        *in99 = *on and status=1331<br />
 C                   call     your program or process<br />
 C                   endif<br />
 C                   if        *in01 = *on<br />
 C                   call      &#8216;HELP&#8217;<br />
 C                   parm      &#8216;SCREEN1&#8242;     Screen           10<br />
 C                   parm      9             crow             15 5<br />
 C                   parm      35            ccol             15 5<br />
 C                   parm                    return            2<br />
   C                   endif<br />
  *<br />
 C                   enddo<br />
  *<br />
 C                   eval      *inlr = *on<br />
  *                                                                                                                     </p>
<p>Display specs</p>
<p> A*<br />
 A* CRTDSPF FILE(XXX/DSP000D1) SRCFILE(XXX/QDDSSRC) +<br />
 A*       MBR(DSP000D1) WAITRCD(20)  &lt;=== DELAY SECONDS(1-32767)<br />
 A*<br />
 A*%%EC<br />
 A                                      DSPSIZ(24 80 *DS3)<br />
 A                                      CA01(01 &#8216;HELP&#8217;)<br />
 A                                      CA03(03 &#8216;EXIT&#8217;)<br />
 A                                      INVITE<br />
 A*<br />
 A          R SCREEN1<br />
 A                                  1 19&#8242;TEST WAITRCD PARAMETER&#8217;<br />
 A                                      DSPATR(HI)<br />
    A                                      DSPATR(UL)<br />
 A                                  9 28&#8242;INPUT:&#8217;<br />
 A            INPUT          1A  B  9 35<br />
 A                                 22  7&#8242;F3=Exit&#8217;<br />
 A                                      COLOR(BLU)</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.013 seconds using memcached
Object Caching 394/397 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 14:32:49 -->