× 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 for your help.

I guess I thought eval would run the subprocedure and return the result in debug. I got too used to that function in other debuggers I guess.

Anyway, is there a book or somewhere I can go to learn this really quickly? I need to understand all the parts of this and be able to send and receive records in production.

Thank you,
Chris Anderson
Partners Mutual Insurance


************************************************************************
message: 2
date: Wed, 06 Feb 2008 11:59:37 -0600
from: Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
subject: Re: TCP/IP Sockets from RPG

In that tutorial, 'errno' isn't a variable -- it's a subprocedure. You
can't EVAL it in debug, because it's not a variable.

The obvious solution is to assign the output of errno to a variable and
display THAT. OR follow the advice in the tutorial and call strerror()
to get an error message.

Please keep in mind (as I've said several times on this list already)
that rdline() was only intended as a teaching aid, it's not intended to
be code that you download and use in production. I don't use it in
production, and it has only received minimal testing. I also know (for
a fact) that it doesn't perform very well.

I do have a much nicer service program for TCP programming in RPG, with
a lot of better tools. It has a replacement for rdline() that runs very
fast, and does true CCSID translation. It has lots of other tools for
commonly used TCP functions... but the code for this service program
is very complex -- not the sort of thing you'd put into a tutorial,
because the code isn't easy to digest.

**************************************************************************

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.