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



I am trying to call a module which was coded by somebody else. I think I am
calling it wrongly. Would y'all mind taking a look at this please and guide
me in the right direction? I am learning RPG so I am not be understanding
the module correctly.

The CTSTJSTTST procedure is written incorrectly. It doesn't matter for your particular example, since you're passing a 70A field for CSTZIP, but if you ever pass something shorter than 70 characters, you run the risk of getting garbage in the parameter, since the programmer who wrote this code clearly didn't understand how options(*VARSIZE) works.

OPDESC was also supplied, but the operational descriptor doesn't appear to be used anywhere in the code. Seems a little odd.

However, with the way you're using it (passing a full 70A field) it works okay. I tried compiling and running your example and it worked for me. Can you please tell us what problem you were having?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.