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



So... are you saying that *NoPass should never be used? ever? for any
programs?  I've created a few programs where the program was prototyped
this way (*NoPass).  "Luckily" I haven't experienced any problems.

No, I'm certainly not saying that it should NEVER be used. I'm saying that the two are not interchangable.

When you call a program, you need to pass that program the parameters the way that it expects to receive them. You can't simply say "I don't like *OMIT, so I'll use *NOPASS instead." The only way this would be valid is if the program that you're calling understands *NOPASS.

In this case, the OP was calling the CEEDOD API. The API documentation clearly labels the feedback parameter as "Omissible" which translates to options(*omit) in RPG code.

You can't simply switch it to *NOPASS and expect it to work.

Now, if you're calling a program or procedure that you wrote yourself, then you can make that program understand *OMIT or *NOPASS or both. In that case, the caller can pick and choose which method it uses to leave the parameter off.

But the CEEDOD API is part of the ILE environment, and it was written by IBM and you don't have the source code to change it. When you call it, you have to pass the parameters the way it's expecting them, you don't have another option.

And it expects options(*OMIT), not options(*NOPASS). So please don't sit here telling me that options(*NOPASS) is okay. It's not. And if you don't believe me, Barbara Morris (who wrote the article) can confirm what I say. Or Bruce Vining is who the guy in charge of APIs for IBM can confirm it. I'm confident that they'll agree that you can't (legally) use options(*NOPASS) with the CEEDOD API.


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.