 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; QMQRY</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/qmqry/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 22:05:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>CL/QMQRY</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cl-qmqry/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/cl-qmqry/#comments</comments>
		<pubDate>Tue, 05 Jun 2012 12:16:43 +0000</pubDate>
		<dc:creator>Sanashakeel</dc:creator>
				<category><![CDATA[AS/400]]></category>
		<category><![CDATA[QMQRY]]></category>
		<category><![CDATA[SQL procedure]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[i hav code   STRQMQRY QMQRY(SQLPROC) OUTPUT(*OUTFILE) + OUTFILE(QTEMP/SQLDT)   In SQLProc txt file i am callin a sql procedure , developed using i series navigator and return data set using cursor. i want this cursor output in qtemp/sqldt file. in sqlproc if i mentioned SELECT statment , then it will work fine, but i want [...]]]></description>
				<content:encoded><![CDATA[<p>i hav code <br/><br/>  <br/><br/> STRQMQRY QMQRY(SQLPROC) OUTPUT(*OUTFILE) + OUTFILE(QTEMP/SQLDT) <br/><br/>  In SQLProc txt file i am callin a sql procedure , developed using i series navigator and return data set using cursor. i want this cursor output in qtemp/sqldt file.<br/><br/> in sqlproc if i mentioned SELECT statment , then it will work fine, but i want through procedure<br/><br/> its urgent , plz help<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/cl-qmqry/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>passing variable in CL Program using QMQRY and SQL</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/passing-variable-in-cl-program-using-qmqry-and-sql/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/passing-variable-in-cl-program-using-qmqry-and-sql/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 14:15:29 +0000</pubDate>
		<dc:creator>Bggas400</dc:creator>
				<category><![CDATA[CL Program]]></category>
		<category><![CDATA[Physical Files]]></category>
		<category><![CDATA[QMQRY]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Question Edited by Serena3]]></description>
				<content:encoded><![CDATA[Question Edited by Serena3]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/passing-variable-in-cl-program-using-qmqry-and-sql/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Forcing AS/400 query data to respect original data order</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/forcing-query-data-to-respect-original-data-order/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/forcing-query-data-to-respect-original-data-order/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 21:06:18 +0000</pubDate>
		<dc:creator>AS400 - Ask the Expert</dc:creator>
				<category><![CDATA[*QRYDFN]]></category>
		<category><![CDATA[AS/400 Query]]></category>
		<category><![CDATA[QMQRY]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[000012   FROM      DISACTDTA1/COGJREP T02,  000013             DISACTDTA1/COGKREP T01,  000014             DISACTDTA1/COCXREP T04,  000015             DISACTDTA1/COGDREP T03,  000016             SATACTDTA1/FINURED T05  000017   WHERE     GJEFZC = GKEFZC  000018     AND     GKB8ZC = CXB8ZC  000019     AND     T02.GJAN8X = T03.GDAN8X  000020     AND     T01.GKB8ZC = T05.NUB8ZC  000021     AND(    T02.GJCDZA = '001367'  000022     AND     ZONED(GJASZB/100), 5) BETWEEN 10901 AND 10912   This is the result of [...]]]></description>
				<content:encoded><![CDATA[<pre>000012   FROM      DISACTDTA1/COGJREP T02,<br/><br/>
 000013             DISACTDTA1/COGKREP T01,<br/><br/>
 000014             DISACTDTA1/COCXREP T04,<br/><br/>
 000015             DISACTDTA1/COGDREP T03,<br/><br/>
 000016             SATACTDTA1/FINURED T05<br/><br/>
 000017   WHERE    
GJEFZC = GKEFZC<br/><br/>
 000018     AND    
GKB8ZC = CXB8ZC<br/><br/>
 000019     AND    
T02.GJAN8X = T03.GDAN8X<br/><br/>
 000020     AND    
T01.GKB8ZC = T05.NUB8ZC<br/><br/>
 000021     AND(   
T02.GJCDZA = '001367'<br/><br/>
 000022     AND    
ZONED(GJASZB/100), 5) BETWEEN 10901 AND 10912</pre>
<p><br/><br/><br />
 <br/><br/><br />
This is the result of the IBM conversion tool of *QRYDFN<br />
in *QMQRY. The optimizer change the order of join files and the result data set<br />
is always smaller than the original. There is a mean to force it to respect the<br />
initial order like in ORACLE?<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/forcing-query-data-to-respect-original-data-order/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>not a valid Query Management variable.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/not-a-valid-query-management-variable/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/not-a-valid-query-management-variable/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 11:32:23 +0000</pubDate>
		<dc:creator>Pmh</dc:creator>
				<category><![CDATA[CL]]></category>
		<category><![CDATA[CL programming]]></category>
		<category><![CDATA[CL variables]]></category>
		<category><![CDATA[QMQRY]]></category>
		<category><![CDATA[Query Management Facility]]></category>
		<category><![CDATA[STRQMQRY]]></category>
		<category><![CDATA[V5R4]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, can someone please help me, I am trying to use the QMQRY function to run an update statement. I pass it a variable from the program. Get the following error. is not a valid Query Management variable. Error found on STRQMQRY command. Function check. CPF0001 unmonitored by PGMFCTSEC at statement 3500, instruction X&#8217;0021&#8242;. Can [...]]]></description>
				<content:encoded><![CDATA[<p>Hi, can someone please help me, I am trying to use the QMQRY function to run an update statement. I pass it a variable from the program. Get the following error. is not a valid Query Management variable. Error found on STRQMQRY command. Function check. CPF0001 unmonitored by PGMFCTSEC at statement 3500, instruction X&#8217;0021&#8242;. Can anyone help? Thanks<br/><br/>  <br/><br/> Program<br/><br/> 0021.00      DCL   VAR(&#038;T01.SCTRAN) TYPE(*CHAR) LEN(10)                                   0022.00  /*        DCL        VAR(&#038;FCT) TYPE(*CHAR) LEN(10)  */                           0023.00      DCLF  FILE(SECTEMP/UNUSEDOUT)                                                0024.00                                                                                   0025.00      CLRPFM     FILE(SECTEMP/UNUSEDOUT)                                           0026.00                                                                                   0027.00              RUNQRY     QRY(SECTEMP/UNUSEDFCT) /* GENERATE LISTING +              0028.00                           OF UNUSED FUNCTIONS */                                  0029.00                                                                                   0030.00          /* READ IN UNUSEDOUT FILE THAT CONTAINS A LISTING OF UNUSED FUNCTIONS */ 0031.00                                                                                   0032.00   LOOP:   RCVF                                                                    0033.00     MONMSG MSGID(CPF0864) EXEC(GOTO CMDLBL(EOF))                                  0034.00                                                                                   0035.00              STRQMQRY   QMQRY(SECTEMP/FCTUPDATE) OUTPUT(*OUTFILE) +               0036.00                           OUTFILE(SECTEMP/FCTOUTPUT) +                            0037.00                           SETVAR(&#8216;FCT&#8217; &#038;T01.SCTRAN)                               0038.00                                                                                   0039.00     GOTO CMDLBL LOOP)                             <br/><br/> 0040.00                                                                         0041.00                                                                         0042.00                                                                         0043.00 EOF:                                                                    0044.00              SNDMSG     MSG(&#8216;***** Function Update Completed *****&#8217;) +  0045.00                           TOUSR(SVRHUMPHP)                              0046.00 ENDPGM                                                                  <br/><br/> Update statement called<br/><br/> 0001.00 UPDATE SECTEMP/SCP002 SET SCTLVL = &#8217;8&#8242; WHERE SCTRAN = &#038;T01.SCTRAN <br/><br/> Any help would be gratefully appreciated&#8230; Thanks<br/><br/>                                                                                                                           <br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/not-a-valid-query-management-variable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display &#8220;No records found&#8221; in a QMQRY</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/display-no-records-found-in-a-qmqry/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/display-no-records-found-in-a-qmqry/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:38:18 +0000</pubDate>
		<dc:creator>Curly</dc:creator>
				<category><![CDATA[AS/400 error messages]]></category>
		<category><![CDATA[AS/400 printing]]></category>
		<category><![CDATA[QMQRY]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a QMQRY that selects data from several files using left joins. Based on my &#8220;where&#8221; clause there is a possibility that no records will be selected. In this case, I want to be able to print &#8220;NO RECORDS FOUND&#8221; on the report. I have not been able to figure out how to get [...]]]></description>
				<content:encoded><![CDATA[<p>I have a QMQRY that selects data from several files using left joins.  Based on my &#8220;where&#8221; clause there is a possibility that no records will be selected.  In this case, I want to be able to print &#8220;NO RECORDS FOUND&#8221; on the report. I have not been able to figure out how to get that text to print on the report.  Any suggestions?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/display-no-records-found-in-a-qmqry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QMQRY not a valid Query Management variable.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-not-a-valid-query-management-variable/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-not-a-valid-query-management-variable/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 07:12:26 +0000</pubDate>
		<dc:creator>NormFeile</dc:creator>
				<category><![CDATA[CL]]></category>
		<category><![CDATA[CL programming]]></category>
		<category><![CDATA[CL variables]]></category>
		<category><![CDATA[QMQRY]]></category>
		<category><![CDATA[STRQMQRY]]></category>
		<category><![CDATA[Variables]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi there, I am trying to pass parameters to QMQRY but get the following error. CALL PGM(JCCSTREP2) PARM(C165) &#8216;C165&#8242; is not a valid Query Management variable. Error found on STRQMQRY command. CPF0001 received by JCCSTREP2 at 2800. (C D I R) the CL pgm that call the query is as follows: PGM PARM(&#038;JOBX) DCL VAR(&#038;JOBX) [...]]]></description>
				<content:encoded><![CDATA[<p>Hi there,<br />
I am trying to pass parameters to QMQRY but get the following error.</p>
<p>CALL PGM(JCCSTREP2) PARM(C165)<br />
 &#8216;C165&#8242; is not a valid Query Management variable.<br />
 Error found on STRQMQRY command.<br />
 CPF0001 received by JCCSTREP2 at 2800. (C D I R)                                          </p>
<p>the CL pgm that call the query is as follows:<br />
PGM        PARM(&#038;JOBX)<br />
DCL        VAR(&#038;JOBX) TYPE(*CHAR) LEN(4)<br />
DCL        VAR(&#038;JOBA) TYPE(*CHAR) LEN(6)<br />
CHGVAR     VAR(&#038;JOBA) VALUE(&#8221;&#8221; *CAT &#038;JOBX *CAT +<br />
             &#8221;&#8221;)<br />
OVRPRTF    FILE(QPQXPRTF) TOFILE(QGPL/JCCSTREP2) +<br />
             PAGESIZE(*N 257)<br />
STRQMQRY   QMQRY(JCCSTREP2) OUTPUT(*PRINT) +<br />
             QMFORM(*QMQRY) SETVAR((&#8216;JOB&#8217;) (&#038;JOBA))<br />
ENDPGM     </p>
<p>Can someone help me with the correct syntax&#8230;Im goin bananas.Cheers Norm</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-not-a-valid-query-management-variable/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Problem in CCSID converting</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/problem-in-ccsid-converting/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/problem-in-ccsid-converting/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 05:09:53 +0000</pubDate>
		<dc:creator>Proturborandza</dc:creator>
				<category><![CDATA[5250 session]]></category>
		<category><![CDATA[AS/400]]></category>
		<category><![CDATA[AS/400 import/export]]></category>
		<category><![CDATA[CCSID]]></category>
		<category><![CDATA[Change Physical File]]></category>
		<category><![CDATA[CHGPF]]></category>
		<category><![CDATA[Coded Character Set Identifier]]></category>
		<category><![CDATA[DDS]]></category>
		<category><![CDATA[iSeries Access for Windows]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[Microsoft Excel]]></category>
		<category><![CDATA[Physical File]]></category>
		<category><![CDATA[QMQRY]]></category>
		<category><![CDATA[Query Management Query]]></category>
		<category><![CDATA[V5R3]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a QM query that forms up a DB file. A physical file. A file that afterwards will be tranferred to the excel worksheet. All the source DB files (as well as all the records inside) that I use in the QM query are having the CCSID=297 (french). But the data itself stored in [...]]]></description>
				<content:encoded><![CDATA[<p>I have a QM query that forms up a DB file. A physical file. A file that afterwards will be tranferred to the excel worksheet. </p>
<p>All the source DB files (as well as all the records inside) that I use in the QM query are having the CCSID=297 (french). But the data itself stored in these DB files sometimes written in russian. So, to have no complaints from users I do the DDS of physical file where I set all the needed records to CCSID value 1025 (russian). Then I just copy the data from the 297-encoded file to the 1025-encoded. That&#8217;s the way IBM recomend to do it. </p>
<p>Almost everything is right after the copying except one little thing. Not all the letters are correctly mapped. </p>
<p>I&#8217;ve tried to make it the different way &#8211; make a interactive query (WRKQRY). The interactive query doesn&#8217;t specify the restricted CCSID. So I&#8217;ve managed to use CHGPF command to change the CCSID to 1025 value. </p>
<p>But using the interactive query is not a right way, isn&#8217;t it?</p>
<p>So I think that possibly there&#8217;s a mistake in the locale char mapping. </p>
<p>Finally, the question: how I can operate and/or change (if it&#8217;ll be needed) a locale file?</p>
<p>Technicals: iSeries v5r3 as/400 server, 5250 terminal, iSeries Access for windows v5r4.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/problem-in-ccsid-converting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>qmqry error &#8211; Help!</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-error-help/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-error-help/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 16:20:03 +0000</pubDate>
		<dc:creator>Lnspgm</dc:creator>
				<category><![CDATA[AS/400 journaling]]></category>
		<category><![CDATA[QMQRY]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Can anyone help? I have a clp application that calls a qmqry which reads a large sales transaction file and selects and creats a small summary file of certain transactions for a certain typpe of part and date range. This sales transaction file is journaled and the file it creates becomes journaled? This part works [...]]]></description>
				<content:encoded><![CDATA[<p>Can anyone help?<br />
I have a clp application that calls a qmqry which reads a large sales transaction file and selects and creats a small summary file of certain transactions for a certain typpe of part and date range. This sales transaction file is journaled and the file it creates becomes journaled? This part works fine.<br />
The second part of the clp takes this summary workfile and joins to our actual payment records and creates another workfile of any items in the workfile that are not paid and ages how deliquient they are. We put these records in a workfile in qtemp and e-mail the user.<br />
This part is not working anymore. It gets a error on select-omit record 0.<br />
I can run this qmqry manually with output on screen so it is not the actually qmqry(I believe) Would the journalling have anything to do with it? Or does anybody have any idea which area I should explore?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-error-help/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>qmqry outfile</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-outfile/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-outfile/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 17:35:47 +0000</pubDate>
		<dc:creator>Lnspgm</dc:creator>
				<category><![CDATA[AS/400]]></category>
		<category><![CDATA[QMQRY]]></category>
		<category><![CDATA[QMQRY OUTFILE]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a qmqry that we have had running in production for awhile with no problem. It is called from a cl. We create one workfile and then the second works with this file and joins to another creating a outfile in qtemp which we e-mail to user. This is the type of error we [...]]]></description>
				<content:encoded><![CDATA[<p>I have a qmqry that we have had running in production for awhile with no problem. It is called from a cl. We create one workfile and then the second works with this file and joins to another creating a outfile in qtemp which we e-mail to user.</p>
<p>This is the type of error we are getting now.<br />
&gt; STRQMQRY QMQRY(CONNIE/PRJ8917) OUTPUT(*OUTFILE) OUTFILE(QTEMP/PRJ8917)<br />
  Select or omit error on field ���������� member PRJ8917.<br />
  Select or omit error on field *N member PRJ8917.<br />
  Select/omit error on member PRJ8917.<br />
  Data conversion or data mapping error.<br />
  RUN QUERY command failed with SQLCODE -802.<br />
  RUN QUERY command ended due to error.<br />
  STRQMQRY command failed.<br />
&gt;  However if I run the same qmqry with output(*) it works?*<br />
&gt; STRQMQRY QMQRY(CONNIE/PRJ8917) OUTPUT(*)     </p>
<p>Any ideas what I might try to correct?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/qmqry-outfile/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</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/24 queries in 0.026 seconds using memcached
Object Caching 883/996 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 04:26:55 -->