<?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"
	>
<channel>
	<title>Comments on: opnqryf problem with grouping</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/</link>
	<description></description>
	<pubDate>Sat, 26 May 2012 05:23:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: qbjgqbjg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38980</link>
		<dc:creator>qbjgqbjg</dc:creator>
		<pubDate>Fri, 28 Apr 2006 10:44:13 +0000</pubDate>
		<guid isPermaLink="false">#comment-38980</guid>
		<description>Ignore last response. I have the names wrong, they should be the result names. Sorry about that.</description>
		<content:encoded><![CDATA[<p>Ignore last response. I have the names wrong, they should be the result names. Sorry about that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qbjgqbjg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38981</link>
		<dc:creator>qbjgqbjg</dc:creator>
		<pubDate>Fri, 28 Apr 2006 10:41:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-38981</guid>
		<description>  11300 - OVRDBF FILE(ELE728PF3) SHARE(*YES)                              
  11400 - OPNQRYF FILE((ELE728PF3)) FORMAT(ELE728SUM) KEYFLD((PRPPN)      
   (DIV#) (ACT) (OBJ) (PREMNO)) GRPFLD(PRPPN DIVISION PREMNO DIV# ACT OBJ)
   MAPFLD((HRSSUM '%SUM(PHRS)') (DEBSUM '%SUM(prddra)') (CRDSUM           
   '%sum(prdcra)') (TOTSUM '%sum(TOTAL)')) OPNID(ELE728SUM)               
 Field 1/PRDDRA not allowed in record format.                             
 Error occurred during processing of command.                             
 CPF9899 received by procedure ELE728CLC. (C D I R)                       
PRDDRA is a numeric field that I am totaling, so why is it not allowed?
Layout for ele728sum:
FILE - ELE728SUM      LIBRARY - BETTY  
RECORD FORMAT - PR728AF        TEXT - Q
---------------------------------------
FIELD       POS  POS FLD FLD  DEC      
NAME       FROM   TO TYP LNG  POS  TEXT
---------------------------------------
PRPPN         1    2  P    2  2, 0     
DIVISION      3    5  A    3           
PREMNO        6   11  P    6 10, 0     
DIV#         12   14  A    3           
ACT          15   17  A    3           
OBJ          18   22  A    5           
PRDDRA       23   28  P    6 11, 2     
PRDCRA       29   34  P    6 11, 2     
PHRS         35   41  P    7 12, 2     
TOTAL        42   48  P    7 12, 2     </description>
		<content:encoded><![CDATA[<p>11300 - OVRDBF FILE(ELE728PF3) SHARE(*YES)<br />
  11400 - OPNQRYF FILE((ELE728PF3)) FORMAT(ELE728SUM) KEYFLD((PRPPN)<br />
   (DIV#) (ACT) (OBJ) (PREMNO)) GRPFLD(PRPPN DIVISION PREMNO DIV# ACT OBJ)<br />
   MAPFLD((HRSSUM &#8216;%SUM(PHRS)&#8217;) (DEBSUM &#8216;%SUM(prddra)&#8217;) (CRDSUM<br />
   &#8216;%sum(prdcra)&#8217;) (TOTSUM &#8216;%sum(TOTAL)&#8217;)) OPNID(ELE728SUM)<br />
 Field 1/PRDDRA not allowed in record format.<br />
 Error occurred during processing of command.<br />
 CPF9899 received by procedure ELE728CLC. (C D I R)<br />
PRDDRA is a numeric field that I am totaling, so why is it not allowed?<br />
Layout for ele728sum:<br />
FILE - ELE728SUM      LIBRARY - BETTY<br />
RECORD FORMAT - PR728AF        TEXT - Q<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
FIELD       POS  POS FLD FLD  DEC<br />
NAME       FROM   TO TYP LNG  POS  TEXT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
PRPPN         1    2  P    2  2, 0<br />
DIVISION      3    5  A    3<br />
PREMNO        6   11  P    6 10, 0<br />
DIV#         12   14  A    3<br />
ACT          15   17  A    3<br />
OBJ          18   22  A    5<br />
PRDDRA       23   28  P    6 11, 2<br />
PRDCRA       29   34  P    6 11, 2<br />
PHRS         35   41  P    7 12, 2<br />
TOTAL        42   48  P    7 12, 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimRaz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38982</link>
		<dc:creator>TimRaz</dc:creator>
		<pubDate>Thu, 27 Apr 2006 22:05:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-38982</guid>
		<description>Sorry, I didn't notice that you did list the fields in the file.

Go to this link:  http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rbam6/rbam6clmain.htm
and read the section under GROUP.

I renamed field DIV to DIVISN (I think DIV is reserved also).
I created a table identical to ELE728PF3 and called it TBL.
I then created TBLPART with the following fields:
Field                           
Name      Type  Length Dec   Loc
PRPPN       P       2   0      1
DIVISN      A       3          3
PREMNO      P      10   2      6
HRSSUM      P      12   2     12
DIV#        A       3         19
ACT         A       3         22
OBJ         A       5         25
DEBSUM      P      13   2     30
CRDSUM      P      13   2     37
TOTSUM      P      15   2     44

Now the Group by has somewhere to put the summed values.
The other fields that are not used in this OPNQRYF statement are omitted from TBLPART.  

Here is the OPNQRYF statement. Notice the FORMAT parameter:

OPNQRYF    FILE((TBL)) FORMAT(TIMR/TBLPART) +            
           KEYFLD((PRPPN) (DIV#) (ACT) (OBJ) (PREMNO)) +     
           GRPFLD(PRPPN DIVISN PREMNO DIV# ACT OBJ) +
           MAPFLD((HRSSUM '%SUM(HRS)') +      
                  (DEBSUM '%SUM(PRDDRA)') +
                  (CRDSUM '%SUM(PRDCRA)') +
                  (TOTSUM '%SUM(TOTAL)'))     

The FORMAT parameter describes what the query result will be like.  Without it, the command assumes it's supposed to be just like the table in the FILE parameter.
</description>
		<content:encoded><![CDATA[<p>Sorry, I didn&#8217;t notice that you did list the fields in the file.</p>
<p>Go to this link:  &lt;a href="http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rbam6/rbam6clmain.htm" rel="nofollow"&gt;http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rbam6/rbam6clmain.htm&lt;/a&gt;<br />
and read the section under GROUP.</p>
<p>I renamed field DIV to DIVISN (I think DIV is reserved also).<br />
I created a table identical to ELE728PF3 and called it TBL.<br />
I then created TBLPART with the following fields:<br />
Field<br />
Name      Type  Length Dec   Loc<br />
PRPPN       P       2   0      1<br />
DIVISN      A       3          3<br />
PREMNO      P      10   2      6<br />
HRSSUM      P      12   2     12<br />
DIV#        A       3         19<br />
ACT         A       3         22<br />
OBJ         A       5         25<br />
DEBSUM      P      13   2     30<br />
CRDSUM      P      13   2     37<br />
TOTSUM      P      15   2     44</p>
<p>Now the Group by has somewhere to put the summed values.<br />
The other fields that are not used in this OPNQRYF statement are omitted from TBLPART.  </p>
<p>Here is the OPNQRYF statement. Notice the FORMAT parameter:</p>
<p>OPNQRYF    FILE((TBL)) FORMAT(TIMR/TBLPART) +<br />
           KEYFLD((PRPPN) (DIV#) (ACT) (OBJ) (PREMNO)) +<br />
           GRPFLD(PRPPN DIVISN PREMNO DIV# ACT OBJ) +<br />
           MAPFLD((HRSSUM &#8216;%SUM(HRS)&#8217;) +<br />
                  (DEBSUM &#8216;%SUM(PRDDRA)&#8217;) +<br />
                  (CRDSUM &#8216;%SUM(PRDCRA)&#8217;) +<br />
                  (TOTSUM &#8216;%SUM(TOTAL)&#8217;))     </p>
<p>The FORMAT parameter describes what the query result will be like.  Without it, the command assumes it&#8217;s supposed to be just like the table in the FILE parameter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimRaz</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38983</link>
		<dc:creator>TimRaz</dc:creator>
		<pubDate>Thu, 27 Apr 2006 22:01:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-38983</guid>
		<description>Sorry, I didn't notice that you did list the fields in the file.

Go to this link:  http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rbam6/rbam6clmain.htm
and read the section under GROUP.

I renamed field DIV to DIVISN.
I created a table identical to ELE728PF3 and called it TBL.
I then created TBLPART with the following fields:
Field                           
Name      Type  Length Dec   Loc
PRPPN       P       2   0      1
DIVISN      A       3          3
PREMNO      P      10   2      6
HRSSUM      P      12   2     12
DIV#        A       3         19
ACT         A       3         22
OBJ         A       5         25
DEBSUM      P      13   2     30
CRDSUM      P      13   2     37
TOTSUM      P      15   2     44

Now the Group by has somewhere to put the summed values.
The other fields that are not used in this OPNQRYF statement are omitted from TBLPART.  

Here is the OPNQRYF statement:

OPNQRYF    FILE((TBL)) FORMAT(TIMR/TBLPART) +            
           KEYFLD((PRPPN) (DIV#) (ACT) (OBJ) (PREMNO)) +     
           GRPFLD(PRPPN DIVISN PREMNO DIV# ACT OBJ) +
           MAPFLD((HRSSUM '%SUM(HRS)') +      
                  (DEBSUM '%SUM(PRDDRA)') +
                  (CRDSUM '%SUM(PRDCRA)') +
(TOTSUM '%SUM(TOTAL)'))     </description>
		<content:encoded><![CDATA[<p>Sorry, I didn&#8217;t notice that you did list the fields in the file.</p>
<p>Go to this link:  &lt;a href="http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rbam6/rbam6clmain.htm" rel="nofollow"&gt;http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rbam6/rbam6clmain.htm&lt;/a&gt;<br />
and read the section under GROUP.</p>
<p>I renamed field DIV to DIVISN.<br />
I created a table identical to ELE728PF3 and called it TBL.<br />
I then created TBLPART with the following fields:<br />
Field<br />
Name      Type  Length Dec   Loc<br />
PRPPN       P       2   0      1<br />
DIVISN      A       3          3<br />
PREMNO      P      10   2      6<br />
HRSSUM      P      12   2     12<br />
DIV#        A       3         19<br />
ACT         A       3         22<br />
OBJ         A       5         25<br />
DEBSUM      P      13   2     30<br />
CRDSUM      P      13   2     37<br />
TOTSUM      P      15   2     44</p>
<p>Now the Group by has somewhere to put the summed values.<br />
The other fields that are not used in this OPNQRYF statement are omitted from TBLPART.  </p>
<p>Here is the OPNQRYF statement:</p>
<p>OPNQRYF    FILE((TBL)) FORMAT(TIMR/TBLPART) +<br />
           KEYFLD((PRPPN) (DIV#) (ACT) (OBJ) (PREMNO)) +<br />
           GRPFLD(PRPPN DIVISN PREMNO DIV# ACT OBJ) +<br />
           MAPFLD((HRSSUM &#8216;%SUM(HRS)&#8217;) +<br />
                  (DEBSUM &#8216;%SUM(PRDDRA)&#8217;) +<br />
                  (CRDSUM &#8216;%SUM(PRDCRA)&#8217;) +<br />
(TOTSUM &#8216;%SUM(TOTAL)&#8217;))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimRac</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38984</link>
		<dc:creator>TimRac</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:31:21 +0000</pubDate>
		<guid isPermaLink="false">#comment-38984</guid>
		<description>Put the file layout of ELE728PF3 so we can see what it's selecting from.  </description>
		<content:encoded><![CDATA[<p>Put the file layout of ELE728PF3 so we can see what it&#8217;s selecting from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qbjgqbjg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38985</link>
		<dc:creator>qbjgqbjg</dc:creator>
		<pubDate>Thu, 27 Apr 2006 17:08:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-38985</guid>
		<description>What I am trying to accomplish is to  create summary records with totals for some of the fields in these records so I can print a report. The fields that I am using to total and group by are the fields it is saying can't be there. So, I don't understand.</description>
		<content:encoded><![CDATA[<p>What I am trying to accomplish is to  create summary records with totals for some of the fields in these records so I can print a report. The fields that I am using to total and group by are the fields it is saying can&#8217;t be there. So, I don&#8217;t understand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TimRac</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38986</link>
		<dc:creator>TimRac</dc:creator>
		<pubDate>Thu, 27 Apr 2006 15:46:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-38986</guid>
		<description>When you use GROUP BY in an SQL, the columns you group by are the only columns allowed to be selected.  You are grouping them for a reason.  Columns other than the ones you are grouping by can't really be shown because there could be different values for the same group.  

Bottom line is that the only fields you can select from your OPNQRYF are those that you are grouping by. You can select counts or other aggregate functions for the grouped fields.  SQL has ways to get around this using a subselect (or subquery).</description>
		<content:encoded><![CDATA[<p>When you use GROUP BY in an SQL, the columns you group by are the only columns allowed to be selected.  You are grouping them for a reason.  Columns other than the ones you are grouping by can&#8217;t really be shown because there could be different values for the same group.  </p>
<p>Bottom line is that the only fields you can select from your OPNQRYF are those that you are grouping by. You can select counts or other aggregate functions for the grouped fields.  SQL has ways to get around this using a subselect (or subquery).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qbjgqbjg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38987</link>
		<dc:creator>qbjgqbjg</dc:creator>
		<pubDate>Thu, 27 Apr 2006 12:27:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-38987</guid>
		<description>I changed the name of the hours field and moved it further down in the record. When I reran it, it now does not like another field. The only thing I changed was hours to phrs.   
    11200 - OVRDBF FILE(ELE728PF3) SHARE(*YES)                               
     11300 - OPNQRYF FILE((ELE728PF3)) KEYFLD((PRPPN) (DIV#) (ACT) (OBJ)      
      (PREMNO)) GRPFLD(PRPPN DIV PREMNO DIV# ACT OBJ) MAPFLD((HRSSUM          
      '%SUM(PHRS)') (DEBSUM '%SUM(prddra)') (CRDSUM '%sum(prdcra)') (TOTSUM   
      '%sum(TOTAL)'))                                                         
    Field 1/PRDTYP not allowed in record format.                              
    Error occurred during processing of command.                              
    CPF9899 received by procedure ELE728CLC. (C D I R)                        
  ? C                                                                         
    Application error.  CPF9899 unmonitored by ELE728CLC at statement         
      0000011300, instruction X'0000'. 
                          Additional Message Information                         
                                                                                
 Message ID . . . . . . :   CPD3165       Severity . . . . . . . :   30         
 Message type . . . . . :   Diagnostic                                          
 Date sent  . . . . . . :   04/27/06      Time sent  . . . . . . :   12:21:46   
                                                                                
 Message . . . . :   Field 1/PRDTYP not allowed in record format.               
 Cause . . . . . :   When group processing is required, all fields contained in 
   the record format identified on the FORMAT parameter must be grouping fields 
   (GRPFLD parameter), or mapped fields (MAPFLD parameter) that are either      
   constant values or are defined using only grouping fields and aggregate      
   functions (%MIN or %MAX with one operand, %AVG, %COUNT, %STDDEV, %SUM, or    
   %VAR).  Group processing is required when the GRPSLT or GRPFLD parameter is  
   used, or when an aggregate function is used in the definition of any field   
   on the MAPFLD parameter.  See the CL Reference topic in the Information      
   Center book, http://www.ibm.com/eserver/iseries/infocenter, for more         
   information about the group processing on the OPNQRYF command.               
 Recovery  . . . :   You may want to specify a different record format on the   
   FORMAT parameter or specify additional entries on the MAPFLD parameter to    
   provide valid definitions for all fields in the record format identified on  
   the FORMAT parameter.  Correct the error and try the request again.          
                                                                                                                      </description>
		<content:encoded><![CDATA[<p>I changed the name of the hours field and moved it further down in the record. When I reran it, it now does not like another field. The only thing I changed was hours to phrs.<br />
    11200 - OVRDBF FILE(ELE728PF3) SHARE(*YES)<br />
     11300 - OPNQRYF FILE((ELE728PF3)) KEYFLD((PRPPN) (DIV#) (ACT) (OBJ)<br />
      (PREMNO)) GRPFLD(PRPPN DIV PREMNO DIV# ACT OBJ) MAPFLD((HRSSUM<br />
      &#8216;%SUM(PHRS)&#8217;) (DEBSUM &#8216;%SUM(prddra)&#8217;) (CRDSUM &#8216;%sum(prdcra)&#8217;) (TOTSUM<br />
      &#8216;%sum(TOTAL)&#8217;))<br />
    Field 1/PRDTYP not allowed in record format.<br />
    Error occurred during processing of command.<br />
    CPF9899 received by procedure ELE728CLC. (C D I R)<br />
  ? C<br />
    Application error.  CPF9899 unmonitored by ELE728CLC at statement<br />
      0000011300, instruction X&#8217;0000&#8242;.<br />
                          Additional Message Information                         </p>
<p> Message ID . . . . . . :   CPD3165       Severity . . . . . . . :   30<br />
 Message type . . . . . :   Diagnostic<br />
 Date sent  . . . . . . :   04/27/06      Time sent  . . . . . . :   12:21:46   </p>
<p> Message . . . . :   Field 1/PRDTYP not allowed in record format.<br />
 Cause . . . . . :   When group processing is required, all fields contained in<br />
   the record format identified on the FORMAT parameter must be grouping fields<br />
   (GRPFLD parameter), or mapped fields (MAPFLD parameter) that are either<br />
   constant values or are defined using only grouping fields and aggregate<br />
   functions (%MIN or %MAX with one operand, %AVG, %COUNT, %STDDEV, %SUM, or<br />
   %VAR).  Group processing is required when the GRPSLT or GRPFLD parameter is<br />
   used, or when an aggregate function is used in the definition of any field<br />
   on the MAPFLD parameter.  See the CL Reference topic in the Information<br />
   Center book, &lt;a href="http://www.ibm.com/eserver/iseries/infocenter" rel="nofollow"&gt;http://www.ibm.com/eserver/iseries/infocenter&lt;/a&gt;, for more<br />
   information about the group processing on the OPNQRYF command.<br />
 Recovery  . . . :   You may want to specify a different record format on the<br />
   FORMAT parameter or specify additional entries on the MAPFLD parameter to<br />
   provide valid definitions for all fields in the record format identified on<br />
   the FORMAT parameter.  Correct the error and try the request again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geneburns</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38988</link>
		<dc:creator>geneburns</dc:creator>
		<pubDate>Thu, 27 Apr 2006 09:18:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-38988</guid>
		<description>HOURS is a reserved duration keyword.  So it probably does not recognize this as a field name.</description>
		<content:encoded><![CDATA[<p>HOURS is a reserved duration keyword.  So it probably does not recognize this as a field name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qbjgqbjg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/opnqryf-problem-with-grouping/#comment-38989</link>
		<dc:creator>qbjgqbjg</dc:creator>
		<pubDate>Thu, 27 Apr 2006 09:17:48 +0000</pubDate>
		<guid isPermaLink="false">#comment-38989</guid>
		<description>                         Additional Message Information                        
                                                                               
 Message ID . . . . . . :   CPD3165       Severity . . . . . . . :   30        
 Message type . . . . . :   Diagnostic                                         
 Date sent  . . . . . . :   04/27/06      Time sent  . . . . . . :   09:10:32  
                                                                               
 Message . . . . :   Field 1/HOURS not allowed in record format.               
 Cause . . . . . :   When group processing is required, all fields contained in
   the record format identified on the FORMAT parameter must be grouping fields
   (GRPFLD parameter), or mapped fields (MAPFLD parameter) that are either     
   constant values or are defined using only grouping fields and aggregate     
   functions (%MIN or %MAX with one operand, %AVG, %COUNT, %STDDEV, %SUM, or   
   %VAR).  Group processing is required when the GRPSLT or GRPFLD parameter is 
   used, or when an aggregate function is used in the definition of any field  
   on the MAPFLD parameter.  See the CL Reference topic in the Information     
   Center book, http://www.ibm.com/eserver/iseries/infocenter, for more        
   information about the group processing on the OPNQRYF command.              
 Recovery  . . . :   You may want to specify a different record format on the  
   FORMAT parameter or specify additional entries on the MAPFLD parameter to   
   provide valid definitions for all fields in the record format identified on 
   the FORMAT parameter.  Correct the error and try the request again.         
                                                                               
This is the file format for the ELE728PF3:
FIELD       POS  POS FLD FLD   DEC  
NAME       FROM   TO TYP LNG   POS  
-----------------------------------
PRPPN         1    2  P    2   2, 0 
DIV           3    5  A    3       
PREMNO        6   11  P    6  10, 0 
HOURS        12   18  P    7  12, 2 
PRDTYP       19   21  A    3       
FUND         22   24  A    3       
DPT#         25   26  A    2       
DIV#         27   29  A    3       
ACT          30   32  A    3       
OBJ          33   37  A    5       
PRDDRA       38   43  P    6  11, 2 
PRDCRA       44   49  P    6  11, 2 
TOTAL        50   56  P    7  12, 2          
               
 </description>
		<content:encoded><![CDATA[<p>Additional Message Information                        </p>
<p> Message ID . . . . . . :   CPD3165       Severity . . . . . . . :   30<br />
 Message type . . . . . :   Diagnostic<br />
 Date sent  . . . . . . :   04/27/06      Time sent  . . . . . . :   09:10:32  </p>
<p> Message . . . . :   Field 1/HOURS not allowed in record format.<br />
 Cause . . . . . :   When group processing is required, all fields contained in<br />
   the record format identified on the FORMAT parameter must be grouping fields<br />
   (GRPFLD parameter), or mapped fields (MAPFLD parameter) that are either<br />
   constant values or are defined using only grouping fields and aggregate<br />
   functions (%MIN or %MAX with one operand, %AVG, %COUNT, %STDDEV, %SUM, or<br />
   %VAR).  Group processing is required when the GRPSLT or GRPFLD parameter is<br />
   used, or when an aggregate function is used in the definition of any field<br />
   on the MAPFLD parameter.  See the CL Reference topic in the Information<br />
   Center book, &lt;a href="http://www.ibm.com/eserver/iseries/infocenter" rel="nofollow"&gt;http://www.ibm.com/eserver/iseries/infocenter&lt;/a&gt;, for more<br />
   information about the group processing on the OPNQRYF command.<br />
 Recovery  . . . :   You may want to specify a different record format on the<br />
   FORMAT parameter or specify additional entries on the MAPFLD parameter to<br />
   provide valid definitions for all fields in the record format identified on<br />
   the FORMAT parameter.  Correct the error and try the request again.         </p>
<p>This is the file format for the ELE728PF3:<br />
FIELD       POS  POS FLD FLD   DEC<br />
NAME       FROM   TO TYP LNG   POS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
PRPPN         1    2  P    2   2, 0<br />
DIV           3    5  A    3<br />
PREMNO        6   11  P    6  10, 0<br />
HOURS        12   18  P    7  12, 2<br />
PRDTYP       19   21  A    3<br />
FUND         22   24  A    3<br />
DPT#         25   26  A    2<br />
DIV#         27   29  A    3<br />
ACT          30   32  A    3<br />
OBJ          33   37  A    5<br />
PRDDRA       38   43  P    6  11, 2<br />
PRDCRA       44   49  P    6  11, 2<br />
TOTAL        50   56  P    7  12, 2</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->
