<?xml version="1.0" encoding="windows-1252"?>
<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 - Forums</title>
		<link>https://code400.com/forum/</link>
		<description>vBulletin Forums</description>
		<language>en</language>
		<lastBuildDate>Thu, 10 Sep 2026 00:17:42 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>images/misc/rss.png</url>
			<title>Code400 -The Support Alternative - Forums</title>
			<link>https://code400.com/forum/</link>
		</image>
		<item>
			<title>Problem with calling the program and passing parameters</title>
			<link>https://code400.com/forum/forum/iseries-programming-languages/rpg-rpgle/159548-problem-with-calling-the-program-and-passing-parameters</link>
			<pubDate>Wed, 02 Sep 2026 13:32:47 GMT</pubDate>
			<description>I have this programme in RPGLE (a summary) 
 
d WkCd0001        s              3a 
d WkCd0002        s              3a 
d WkDe0001        s             50a 
D STARTPGM1    PR 
D  P_PARM                             LIKE (P_PARM) 
 * 
D STARTPGM1    PI 
D  P_PARM                     5000</description>
			<content:encoded><![CDATA[I have this programme in RPGLE (a summary)<br />
<br />
d WkCd0001        s              3a<br />
d WkCd0002        s              3a<br />
d WkDe0001        s             50a<br />
D STARTPGM1    PR<br />
D  P_PARM                             LIKE (P_PARM)<br />
 *<br />
D STARTPGM1    PI<br />
D  P_PARM                     5000<br />
 *<br />
D DsQuery1        DS<br />
D  Field_1                1     10    Inz(*Blanks)<br />
D  Field_2               11     50    Inz(*Blanks)<br />
D  Field_3               51    101    Inz(*Blanks)<br />
c                   ExSr      SrRout01<br />
c                   ExSr      SrStart<br />
 /free<br />
  BegSr SrRout01;<br />
<br />
  EVAL DsQuery1 = P_PARM;<br />
  Eval WkCd0001 = %Trim(Field_1);<br />
  Eval WkCd0002 = %Trim(Field_2);<br />
  Eval WkDe0001 = %Trim(Field_3); <br />
<br />
with a simple interactive call, passing these 3 parameters:<br />
CALL PGM(MYLIBL/STARTPGM1) PARM(&#8220;TXT&#8221; '$$$&#8220; 'NOT FOUND&#8221;) and when debugging<br />
<br />
the third parameter (WKDEELEM) gives me this result<br />
<br />
WKDEELEM = &#8220;NOT FOUND                      ??                 &#8221;<br />
<br />
that is, it also returns these two characters (??) in addition to &#8216;NOT FOUND&#8217;. <br />
<br />
I would like to obtain only the following result:<br />
WkCd0001 = &#8220;TXT&#8221;<br />
WKCd0002 = '$$$'<br />
WkDe0001 = &#8220;NOT FOUND                                             &#8221; <br />
<br />
How can I correct the code?]]></content:encoded>
			<category domain="https://code400.com/forum/forum/iseries-programming-languages/rpg-rpgle">RPG/RPGLE</category>
			<dc:creator>Yanez25</dc:creator>
			<guid isPermaLink="true">https://code400.com/forum/forum/iseries-programming-languages/rpg-rpgle/159548-problem-with-calling-the-program-and-passing-parameters</guid>
		</item>
		<item>
			<title><![CDATA[&amp;quot;Self Update&amp;quot; not Triggering Journal Entry]]></title>
			<link>https://code400.com/forum/forum/iseries-programming-languages/clp-clle/159547-self-update-not-triggering-journal-entry</link>
			<pubDate>Tue, 25 Aug 2026 18:59:21 GMT</pubDate>
			<description><![CDATA[We have a case where we want to get journal entries for &quot;UPDATES&quot; without actually updating the data. I thought running this would trigger a journal entry, but appears not to. 
 
UPDATE TABLE_A 
SET FIELD1 = FIELD1 
WHERE STATUS = 'X' 
 
When I run it, it says 50 records changed, but when I do...]]></description>
			<content:encoded><![CDATA[We have a case where we want to get journal entries for &quot;UPDATES&quot; without actually updating the data. I thought running this would trigger a journal entry, but appears not to.<br />
<br />
UPDATE TABLE_A<br />
SET FIELD1 = FIELD1<br />
WHERE STATUS = 'X'<br />
<br />
When I run it, it says 50 records changed, but when I do DSPJRN I don't see anything.]]></content:encoded>
			<category domain="https://code400.com/forum/forum/iseries-programming-languages/clp-clle">CLP/CLLE</category>
			<dc:creator>MFisher</dc:creator>
			<guid isPermaLink="true">https://code400.com/forum/forum/iseries-programming-languages/clp-clle/159547-self-update-not-triggering-journal-entry</guid>
		</item>
		<item>
			<title>Removing Temporary PTFs ?</title>
			<link>https://code400.com/forum/forum/iseries-programming-languages/iseries-system-administration/159546-removing-temporary-ptfs</link>
			<pubDate>Tue, 25 Aug 2026 18:54:50 GMT</pubDate>
			<description><![CDATA[We did a PTF update past weekend, and 1 of the temporary PTFs broke some applications trying to connect. I thought Temp PTFs could be fairly easily removed and without knowing which one, thought all 100 of them could be removed for now. But a consultant said not too, that it's too risky and could...]]></description>
			<content:encoded><![CDATA[We did a PTF update past weekend, and 1 of the temporary PTFs broke some applications trying to connect. I thought Temp PTFs could be fairly easily removed and without knowing which one, thought all 100 of them could be removed for now. But a consultant said not too, that it's too risky and could cause more problems.<br />
<br />
So, just wondering what others think.]]></content:encoded>
			<category domain="https://code400.com/forum/forum/iseries-programming-languages/iseries-system-administration">Iseries System administration</category>
			<dc:creator>MFisher</dc:creator>
			<guid isPermaLink="true">https://code400.com/forum/forum/iseries-programming-languages/iseries-system-administration/159546-removing-temporary-ptfs</guid>
		</item>
		<item>
			<title>HTTPAPI - Error parsing user/password from URL</title>
			<link>https://code400.com/forum/forum/iseries-programming-languages/rpg-rpgle/159543-httpapi-error-parsing-user-password-from-url</link>
			<pubDate>Tue, 11 Aug 2026 06:15:23 GMT</pubDate>
			<description><![CDATA[HTTPAPI does not correctly parse the user and password from a URL, such as &quot;http://user:password@10.212.66.112:8080/auth/basic/&quot;. 
 
The problem is the '@', which is a variant character and which has a different hex code on German systems. 
 
I am not sure whether it is the best option, but I made...]]></description>
			<content:encoded><![CDATA[HTTPAPI does not correctly parse the user and password from a URL, such as &quot;http://user<img src="https://code400.com/forum/core/images/smilies/tongue.gif" border="0" alt="" title="Stick Out Tongue" smilieid="6" class="inlineimg" />assword@10.212.66.112:8080/auth/basic/&quot;.<br />
<br />
The problem is the '@', which is a variant character and which has a different hex code on German systems.<br />
<br />
I am not sure whether it is the best option, but I made it working on your IBM i by updating procedure http_long_ParseURL() as shown below:<br />
<br />
Added:<br />
<br />

<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	
	<pre class="bbcode_code" style="max-height:calc(30 *  + 12px + 20px);">      // Define variant character @
     D AT              s              1C   inz(u'0040')
&#8203;</pre>
</div>&#8203;<br />
Updated:<br />
<br />

<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	
	<pre class="bbcode_code" style="max-height:calc(30 *  + 12px + 20px);">     C* find the last @ symbol in the host name.  It's important
     C* to use the last one, in case the userid is an e-mail address.
     C* for example:
     c*  http://bob@nospam.com:bigboy@www.scottklement.com
     c                   eval      wwPos = 0
     c                   eval      wwFound = %scan(AT: peHost) // Updated
     c                   dow       wwFound &gt; 1 and wwFound &lt; %size(peHost)
     c                   eval      wwPos = wwFound
     c                   eval      wwFound = %scan(AT: peHost: wwFound+1) // Updated
     c                   enddo
&#8203;</pre>
</div>Regards,<br />
<br />
Thomas.]]></content:encoded>
			<category domain="https://code400.com/forum/forum/iseries-programming-languages/rpg-rpgle">RPG/RPGLE</category>
			<dc:creator>tools400dev</dc:creator>
			<guid isPermaLink="true">https://code400.com/forum/forum/iseries-programming-languages/rpg-rpgle/159543-httpapi-error-parsing-user-password-from-url</guid>
		</item>
	</channel>
</rss>
