<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Code400 -The Support Alternative - CLP/CLLE</title>
		<link>http://www.code400.com/forum/</link>
		<description>CLP/CLLE Code Forum</description>
		<language>en</language>
		<lastBuildDate>Tue, 07 Sep 2010 00:29:40 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.code400.com/forum/images/misc/rss.png</url>
			<title>Code400 -The Support Alternative - CLP/CLLE</title>
			<link>http://www.code400.com/forum/</link>
		</image>
		<item>
			<title>read/ write into a Data Queue</title>
			<link>http://www.code400.com/forum/showthread.php/9627-read-write-into-a-Data-Queue?goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 13:57:19 GMT</pubDate>
			<description><![CDATA[Apart from using API's QSNDDTAQ & QRCVDTAQ, Is there any command in AS400 to directly read/write into a Data Queue.]]></description>
			<content:encoded><![CDATA[<div>Apart from using API's QSNDDTAQ &amp; QRCVDTAQ, Is there any command in AS400 to directly read/write into a Data Queue.</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>vinothkumar</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9627-read-write-into-a-Data-Queue</guid>
		</item>
		<item>
			<title>Types conversion in CL?</title>
			<link>http://www.code400.com/forum/showthread.php/9624-Types-conversion-in-CL?goto=newpost</link>
			<pubDate>Wed, 01 Sep 2010 23:05:10 GMT</pubDate>
			<description><![CDATA[Hello all... hope someone can give me a pointer with this: 
 
DCL VAR(&DAY) TYPE(*CHAR) LEN(2) 
 
RTVSYSVAL SYSVAL(QDAY) RTNVAR(&DAY) 
 
IF COND(&DAY *LT 7) THEN(....) 
 
When I try to compile this, I get "CPD0711 30  Operands in expression not same type." 
Since QDAY is a *CHAR, and 7 is not, is...]]></description>
			<content:encoded><![CDATA[<div>Hello all... hope someone can give me a pointer with this:<br />
<br />
DCL VAR(&amp;DAY) TYPE(*CHAR) LEN(2)<br />
<br />
RTVSYSVAL SYSVAL(QDAY) RTNVAR(&amp;DAY)<br />
<br />
IF COND(&amp;DAY *LT 7) THEN(....)<br />
<br />
When I try to compile this, I get &quot;CPD0711 30  Operands in expression not same type.&quot;<br />
Since QDAY is a *CHAR, and 7 is not, is there any way to perform a explicit type conversion to convert the &amp;DAY var to a decimal, so that I can compare it against a numeric value?  I thought that CL should be able to do an implicit conversion.<br />
<br />
This is all part of a block of code I'm putting together that should return which Friday of the week it is (1, 2, 3, 4, or 5).  I'd also welcome suggestions for better ways to do that...<br />
<br />
Thanks in advance!!</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>benhu</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9624-Types-conversion-in-CL</guid>
		</item>
		<item>
			<title>I need some input please</title>
			<link>http://www.code400.com/forum/showthread.php/9620-I-need-some-input-please?goto=newpost</link>
			<pubDate>Wed, 01 Sep 2010 12:51:32 GMT</pubDate>
			<description><![CDATA[Since CL has been discontinued since the late 80's... 
I'm thinking about removing the CL forum... 
 
What do you Think? 
 
 
Jamie]]></description>
			<content:encoded><![CDATA[<div>Since CL has been discontinued since the late 80's...<br />
I'm thinking about removing the CL forum...<br />
<br />
What do you Think?<br />
<br />
<br />
Jamie</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>jamief</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9620-I-need-some-input-please</guid>
		</item>
		<item>
			<title>MSG Reply from QSYSOPR</title>
			<link>http://www.code400.com/forum/showthread.php/9617-MSG-Reply-from-QSYSOPR?goto=newpost</link>
			<pubDate>Tue, 31 Aug 2010 22:49:09 GMT</pubDate>
			<description><![CDATA[OK, I'm staring at things WAY too long ... what am I missing?  This goes into an endless loop and just keeps sending the message to the QSYSOPR.  I need to validated to continue or give option to cancel. 
 
 
PHP: 
--------- 
TapeCheck2: 
    SndPgmMsg msgdta( 'Mount tape and press G-Continue,...]]></description>
			<content:encoded><![CDATA[<div>OK, I'm staring at things WAY too long ... what am I missing?  This goes into an endless loop and just keeps sending the message to the QSYSOPR.  I need to validated to continue or give option to cancel.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB">TapeCheck2</span><span style="color: #007700">:<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">SndPgmMsg&nbsp;msgdta</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">'Mount&nbsp;tape&nbsp;and&nbsp;press&nbsp;G-Continue,&nbsp;C-Cancel'&nbsp;</span><span style="color: #007700">)&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">msgid</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">cpf9897&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">msgf</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">QCPFMSG&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">topgmq</span><span style="color: #007700">(&nbsp;*</span><span style="color: #0000BB">EXT&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">tomsgq</span><span style="color: #007700">(&nbsp;*</span><span style="color: #0000BB">SYSOPR&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">msgtype</span><span style="color: #007700">(&nbsp;*</span><span style="color: #0000BB">INQ&nbsp;</span><span style="color: #007700">)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">RcvMsg&nbsp;&nbsp;&nbsp;&nbsp;msgtype</span><span style="color: #007700">(&nbsp;*</span><span style="color: #0000BB">RPY&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">msg</span><span style="color: #007700">(&nbsp;&amp;</span><span style="color: #0000BB">Reply&nbsp;</span><span style="color: #007700">)<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(&nbsp;&amp;</span><span style="color: #0000BB">Reply&nbsp;</span><span style="color: #007700">*</span><span style="color: #0000BB">NE&nbsp;</span><span style="color: #DD0000">'G'&nbsp;</span><span style="color: #007700">*AND&nbsp;&amp;</span><span style="color: #0000BB">Reply&nbsp;</span><span style="color: #007700">*</span><span style="color: #0000BB">NE&nbsp;</span><span style="color: #DD0000">'g'&nbsp;</span><span style="color: #007700">)&nbsp;*AND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(&nbsp;&amp;</span><span style="color: #0000BB">Reply&nbsp;</span><span style="color: #007700">*</span><span style="color: #0000BB">NE&nbsp;</span><span style="color: #DD0000">'C'&nbsp;</span><span style="color: #007700">*AND&nbsp;&amp;</span><span style="color: #0000BB">Reply&nbsp;</span><span style="color: #007700">*</span><span style="color: #0000BB">NE&nbsp;</span><span style="color: #DD0000">'c'&nbsp;</span><span style="color: #007700">)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">then</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">Goto&nbsp;TapeCheck2&nbsp;</span><span style="color: #007700">)&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div> BTW ... this is a Batch Job.</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>FaStOnE</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9617-MSG-Reply-from-QSYSOPR</guid>
		</item>
		<item>
			<title>Calling a procedure from CL (first attempt at CLLE)</title>
			<link>http://www.code400.com/forum/showthread.php/9577-Calling-a-procedure-from-CL-(first-attempt-at-CLLE)?goto=newpost</link>
			<pubDate>Fri, 20 Aug 2010 21:11:26 GMT</pubDate>
			<description><![CDATA[Ok.. I've created several ILE RPG procedures.  I use them all the time in RPG programs.  Like many, I use binding directories in the H-specs... nearly all of my procedures involve a return variable. 
 
NOW, I have the need to call a procedure from w/in some CL programs.  The ILE RPG program returns...]]></description>
			<content:encoded><![CDATA[<div>Ok.. I've created several ILE RPG procedures.  I use them all the time in RPG programs.  Like many, I use binding directories in the H-specs... nearly all of my procedures involve a return variable.<br />
<br />
NOW, I have the need to call a procedure from w/in some CL programs.  The ILE RPG program returns the accounting year/period based on the date passed in (fiscal year/periods).<br />
<br />
I understand that I'need to define my old CLP as CLLE and use the CALLPRC command.  However, I can't get this to work... I created a simple CLLE source, used the CRTMOD command (option 15 in PDM), then the CRTPGM command to create the program - referencing the same binding directory used by the RPG pgms.  When the CLLE pgm is called interactively it hangs at the statement where the procedure is called (had it in debug). :duh<br />
<br />
First of all, I'm extremely dissapointed that I have to create a module AND THEN then create a pgm to use CLLE... why bother with all the work.<br />
Second, if it is this difficult to get CLLE pgms to work, I'm going &quot;old-school&quot; and call a freekin' RPG pgm to call the procedure to return the value i'm looking for.<br />
<br />
I have quite a few existing CLP and ILE RPG applications that need to use this new procedure... So I don't want to re-invent the wheel here.<br />
<br />
Any help with creating/compiling my first CLLE pgm would be appreciated.</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>gwilburn</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9577-Calling-a-procedure-from-CL-(first-attempt-at-CLLE)</guid>
		</item>
		<item>
			<title>How to restore with new library using RSTLIB</title>
			<link>http://www.code400.com/forum/showthread.php/9575-How-to-restore-with-new-library-using-RSTLIB?goto=newpost</link>
			<pubDate>Fri, 20 Aug 2010 07:39:16 GMT</pubDate>
			<description>Hi All, 
 
Here I have one problem during restoration, if anyone could help that would be great. 
 
I am restoring a library via CLLE program in batch. 
During restoration if we give a new library name in RSTLIB parameter of RSTLIB command then journals and their receivers are not restored.  
...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Here I have one problem during restoration, if anyone could help that would be great.<br />
<br />
I am restoring a library via CLLE program in batch.<br />
During restoration if we give a new library name in RSTLIB parameter of RSTLIB command then journals and their receivers are not restored. <br />
<br />
Steps that I am doing <br />
<br />
Step1: CRTLIB LIB(&amp;MyNewLib)<br />
Step2: I am using following parameters on RSTLIB command<br />
<br />
RSTLIB SAVLIB(TEST) DEV(*SAVF) SAVF(SAVELIBSC/MYSAVF) RSTLIB(NIL) OUTPUT(*PRINT)                                                                    <br />
<br />
Here is the error I am getting. All objects are restore except following journal and its receiver.<br />
<br />
Message ID . . . . . . :   CPF7086       Severity . . . . . . . :   30       <br />
Message type . . . . . :   Diagnostic                                        <br />
Date sent  . . . . . . :   08/20/10      Time sent  . . . . . . :   01:50:33 <br />
                                                                             <br />
Message . . . . :   Cannot restore journal PF002JRN to library NIL.          <br />
Cause . . . . . :   Library NIL is not the library where journal PF002JRN was originally created.  Journal PF002JRN was originally created in library TEST and can only be restored to this library.  This operation is not allowed because the association between journal receivers and the journal would be lost.                                                             <br />
Recovery  . . . :   Change the name of the library in the RSTLIB parameter value.  Then try the request again.   <br />
<br />
Kindly let me know how we can overcome with this problem.</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>Nil</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9575-How-to-restore-with-new-library-using-RSTLIB</guid>
		</item>
		<item>
			<title>HOw can I chain In CLLE</title>
			<link>http://www.code400.com/forum/showthread.php/9574-HOw-can-I-chain-In-CLLE?goto=newpost</link>
			<pubDate>Fri, 20 Aug 2010 04:34:17 GMT</pubDate>
			<description>I just want to select a particular record in Database file ... 
I think i can use Runqry DYNSLT ...but that is not the right process i think.. 
 
Can any one give me good IDEA 
 
 
THanks in advance 
venky</description>
			<content:encoded><![CDATA[<div>I just want to select a particular record in Database file ...<br />
I think i can use Runqry DYNSLT ...but that is not the right process i think..<br />
<br />
Can any one give me good IDEA<br />
<br />
<br />
THanks in advance<br />
venky</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>venky2903</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9574-HOw-can-I-chain-In-CLLE</guid>
		</item>
		<item>
			<title>FTP Line Wrapping</title>
			<link>http://www.code400.com/forum/showthread.php/9567-FTP-Line-Wrapping?goto=newpost</link>
			<pubDate>Thu, 19 Aug 2010 11:13:05 GMT</pubDate>
			<description>Hi 
 
Does anyone know how to wrap a line in FTP using an iSeries source file? 
 
The maximum length for a PDM viewable source file is 240 but the command may exceed this. 
 
Any ideas? 
 
Thanks.</description>
			<content:encoded><![CDATA[<div>Hi<br />
<br />
Does anyone know how to wrap a line in FTP using an iSeries source file?<br />
<br />
The maximum length for a PDM viewable source file is 240 but the command may exceed this.<br />
<br />
Any ideas?<br />
<br />
Thanks.</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>Andygeee</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9567-FTP-Line-Wrapping</guid>
		</item>
		<item>
			<title>How to RCVMSG in CLLE</title>
			<link>http://www.code400.com/forum/showthread.php/9542-How-to-RCVMSG-in-CLLE?goto=newpost</link>
			<pubDate>Fri, 13 Aug 2010 11:20:19 GMT</pubDate>
			<description>Hi All, 
 
Could any one tell me how to retrieve or receive message in following scenario. 
 
Program A is calling program B 
Program B sends some message using SNDMSG to user (which is retrieved in program B),  
now when program B finishes it returns to program A. Here in program A I want to...</description>
			<content:encoded><![CDATA[<div>Hi All,<br />
<br />
Could any one tell me how to retrieve or receive message in following scenario.<br />
<br />
Program A is calling program B<br />
Program B sends some message using SNDMSG to user (which is retrieved in program B), <br />
now when program B finishes it returns to program A. Here in program A I want to retrieve the message which program B has sent.<br />
<br />
How we can do this.........</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>Nil</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9542-How-to-RCVMSG-in-CLLE</guid>
		</item>
		<item>
			<title>Reg :  Command</title>
			<link>http://www.code400.com/forum/showthread.php/9505-Reg-Command?goto=newpost</link>
			<pubDate>Wed, 04 Aug 2010 10:36:28 GMT</pubDate>
			<description>Hi all 
 
Is any command is to find how many programs used particular physical file 
 
Thanx in Advance 
magesh</description>
			<content:encoded><![CDATA[<div>Hi all<br />
<br />
Is any command is to find how many programs used particular physical file<br />
<br />
Thanx in Advance<br />
magesh</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>kmkmagesh</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9505-Reg-Command</guid>
		</item>
		<item>
			<title>MonMsg CPA2129</title>
			<link>http://www.code400.com/forum/showthread.php/9501-MonMsg-CPA2129?goto=newpost</link>
			<pubDate>Mon, 02 Aug 2010 19:13:06 GMT</pubDate>
			<description>In cleaning up servers that are going to be retired, I have to do a ClrLib on QGPL --- BUT, I get the following message: 
 
CPA2129 -- Clearing or deleting system library QGPL. (I C) 
 
I have a MonMsg for it... but, it still forces this message.  Any ideas on bypassing this?</description>
			<content:encoded><![CDATA[<div>In cleaning up servers that are going to be retired, I have to do a ClrLib on QGPL --- BUT, I get the following message:<br />
<br />
CPA2129 -- Clearing or deleting system library QGPL. (I C)<br />
<br />
I have a MonMsg for it... but, it still forces this message.  Any ideas on bypassing this?</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>FaStOnE</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9501-MonMsg-CPA2129</guid>
		</item>
		<item>
			<title>macro script in CLP?</title>
			<link>http://www.code400.com/forum/showthread.php/9482-macro-script-in-CLP?goto=newpost</link>
			<pubDate>Wed, 28 Jul 2010 03:22:26 GMT</pubDate>
			<description><![CDATA[hi! I'm new here guys... I just wanna know if its possible to insert a macro script in a clp program that i could call as a program? can i have a simple sample? or there's a better way? thnks u so much.... 
 
PGM 
'macro script  
ENDPGM]]></description>
			<content:encoded><![CDATA[<div>hi! I'm new here guys... I just wanna know if its possible to insert a macro script in a clp program that i could call as a program? can i have a simple sample? or there's a better way? thnks u so much....<br />
<br />
PGM<br />
'macro script <br />
ENDPGM</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>etyasan</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9482-macro-script-in-CLP</guid>
		</item>
		<item>
			<title>printer config like telnet</title>
			<link>http://www.code400.com/forum/showthread.php/9481-printer-config-like-telnet?goto=newpost</link>
			<pubDate>Tue, 27 Jul 2010 18:24:14 GMT</pubDate>
			<description>I have a project where I send data over to a windows box which then processes it and dispenses drugs. I am able to telnet to a box and send data over successfully. Is there a printer configuration that has same communication properties as a telnet session? Or is there a way that I can program a...</description>
			<content:encoded><![CDATA[<div>I have a project where I send data over to a windows box which then processes it and dispenses drugs. I am able to telnet to a box and send data over successfully. Is there a printer configuration that has same communication properties as a telnet session? Or is there a way that I can program a telnet connection and specify strings to send?<br />
:confused:</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>ted</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9481-printer-config-like-telnet</guid>
		</item>
		<item>
			<title>Opnqryf</title>
			<link>http://www.code400.com/forum/showthread.php/9453-Opnqryf?goto=newpost</link>
			<pubDate>Wed, 21 Jul 2010 05:45:09 GMT</pubDate>
			<description><![CDATA[Hello Team, 
Firstly let me thank you all in advance !!! 
 
I have one criteria for selection of records from a file using OPNQRYF.....I need to reteive the records which are of TMZA(file A) *GE &tmz2. 
TMZA is timestamp in file A and &date is variable declared in CL. 
 
Please find my code below :...]]></description>
			<content:encoded><![CDATA[<div>Hello Team,<br />
Firstly let me thank you all in advance !!!<br />
<br />
I have one criteria for selection of records from a file using OPNQRYF.....I need to reteive the records which are of TMZA(file A) *GE &amp;tmz2.<br />
TMZA is timestamp in file A and &amp;date is variable declared in CL.<br />
<br />
Please find my code below :<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> DCL&nbsp; &nbsp; &nbsp; &nbsp; VAR(&amp;TMZ1) TYPE(*char) LEN(26)<br />
&nbsp;DCL&nbsp; &nbsp; &nbsp; &nbsp; VAR(&amp;TMZ2) TYPE(*char) LEN(15) VALUE('00.00.00.000000')<br />
&nbsp;DCL&nbsp; &nbsp; &nbsp; &nbsp; VAR(&amp;DATE) TYPE(*CHAR) LEN(8)<br />
<br />
DCLF&nbsp; &nbsp; &nbsp;  FILE(FILEA)<br />
<br />
RCVF&nbsp; &nbsp; &nbsp;  RCDFMT(filer)<br />
CHGVAR&nbsp; &nbsp;  VAR(&amp;TMZ1) VALUE(&amp;TMZA)<br />
<font color="Red">..........Value of &amp;TMZ1 would be time stamp value from file i.e '2010-01-16-00.38.31.178000'<br />
</font>CHGVAR&nbsp; &nbsp;  VAR(%SST(&amp;TMZA 12 15)) VALUE(&amp;TMZ2) <br />
<font color="Red">.......value of &amp;TMZA will get changed to ''2010-06-26-00.00.00.000000'<br />
<br />
</font>OVRDBF&nbsp; &nbsp;  FILE(FILEA) OVRSCOPE(*JOB) SHARE(*YES)<br />
<br />
OPNQRYF&nbsp; &nbsp; FILE((FILEA)) QRYSLT('TMZA *GE' *BCAT &amp;TMZ1)</code><hr />
</div> .......once this is executed am getting below error<br />
<br />
'Character '.' following string '00.38       ' not valid.'<br />
<br />
Also tried in different way even...By extracting date from TMZA...<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">DCL&nbsp; &nbsp; &nbsp; &nbsp; VAR(&amp;TMZ2) TYPE(*CHAR) LEN(8)&nbsp; <br />
DCL&nbsp; &nbsp; &nbsp; &nbsp; VAR(&amp;tmz1) TYPE(*CHAR) LEN(10) <br />
DCL&nbsp; &nbsp; &nbsp; &nbsp; VAR(&amp;DATE) TYPE(*CHAR) LEN(8) <br />
<br />
CHGVAR&nbsp; &nbsp;  VAR(&amp;TMZ1) VALUE(%SST(&amp;TMZA 1 10))<br />
CVTDAT&nbsp; &nbsp;  DATE(&amp;TMZ1) TOVAR(&amp;TMZ1) FROMFMT(*ISO) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  TOFMT(*YYMD) TOSEP(*NONE) <br />
CHGVAR&nbsp; &nbsp;  VAR(&amp;TMZ2) VALUE(&amp;TMZ1)<br />
<br />
OPNQRYF&nbsp; &nbsp; FILE((FILEA)) QRYSLT('&amp;TMZ2 *GE' *BCAT &amp;date)</code><hr />
</div> .......once executed am getting below error...<br />
'Missing operand on expression in QRYSLT parameter.'<br />
<br />
Could you please help me in getting the correct query for my requirment.<br />
<br />
Thankyou......</div>

 ]]></content:encoded>
			<category domain="http://www.code400.com/forum/forumdisplay.php/4-CLP-CLLE">CLP/CLLE</category>
			<dc:creator>abhishek_ec002</dc:creator>
			<guid isPermaLink="true">http://www.code400.com/forum/showthread.php/9453-Opnqryf</guid>
		</item>
	</channel>
</rss>
