× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Jon,

I've been meaning to get a handle on VARYING and *varsize but truth is I
just haven't put my brain to it yet - too many other demands on an already
limited resource ;-)

No Brad's book did not use VARYING.  In fact, his version of the
sub-procedure still uses the OPCODE CHECKR to determine the data length like
so...

C     ' '           CHECKR    WrtDta:1024    WrtDtaLen

Of course this works just fine, but I changed it when I wrote my version,
just like I changed all the '9b 0' numeric fields to '10i 0'.  The API
requires a length parameter, so if I did change WrtDta (RPGIII name courtesy
of Brad, I was too lazy to rewrite that!) to Varying would I just use the
%len bif?


Joel R. Cochran
Director of Internet Services
VamaNet.com
(800)480-8810
mailto:webmaster@vamanet.com


> -----Original Message-----
> From: Jon Paris [mailto:Jon.Paris@Partner400.com]
> Sent: Friday, August 09, 2002 6:39 PM
> To: web400@midrange.com
> Subject: [WEB400] Serious speed issues...
>
>
>  >> When I should have had:
>  >>   WrtDtaLen = %len( %trim( WrtDta ) );
>
> Joel, if you change the definition of WrtDta (that's a bit of
> an RPG III
> name isn't it <grin>) to VARYING you won't have to do the
> trim, which will
> speed things up considerably, and the building of the strings
> will also be
> faster by an order of magnitude.  Varying is the only way to go -
> particularly for parms and CGI type string builds.
>
> Doesn't Brad use Varying strings in the new book?
>
> Jon Paris
> Partner400
>
>
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> To post a message email: WEB400@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/web400
> or email: WEB400-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/web400.
>


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.