× 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.


  • Subject: Re: FTP Logging & Pointers
  • From: "Scott Klement" <infosys@xxxxxxxxxxxx>
  • Date: 17 Aug 1999 16:44:53 -0500

Hi John,

JFinney@omnia.co.za wrote:
> Hi All
>
> The heading of this post is misleading as I have two short questions
>
>  Where would I be able to view/edit the FTP logging ( server side)
>  file ?


As far as I know, the FTP server does not keep a log.   (However,
I'm still at V3R2, so its possible that they changed this...)

You could probably create your own using an FTP exit program...


>
> Besides being used for mixed-language program calls, what benefits
>  could be
> obtained by a series of RPGLE modules using pointers ( as opposed to
> lengthy parameter lists) ?
>
> Regards
> John.
>

Using pointers as opposed to parameter lists?  I'm not completely
clear on what you mean.   Are you talking about passing a pointer
to a data structure instead of a parameter list?

First of all, when parameters are passed from program to program,
(and also by default from procedure to procedure) they are passed
by reference -- which essentially means that all thats being passed
is a pointer!

So, if you've got a parameter list with 50 parameters in it, you're
passing 50 pointers.  At 16 bytes each, thats 800 bytes of data.
Not bad.

If you've got a parameter list that consists of nothing but a data
structure, you're passing one pointer, or 16 bytes.  will this make
a big difference in execution speed?  Probably not.

Another difference is that you can use an externally defined data
structure for your parameter.

Another nice thing about passing a data structure instead of seperate
parameters is that its easier to support backwards compatability.
For example, the various OS/400 API's will pass a "format name" as
part of the structure.   The API can then examine the format name
before determining what the layout of the data structure will be,
this way they can add new layouts and create additional info thats
returned without sacrificing backwards compatability.  (i.e. new
info has a different format name)

Hope that helps somewhat...

Scott Klement
Information Systems Manager
Klement's Sausage Co, Inc.
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.