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



"Paramasivam Murugesan , Gurgaon" wrote:
> 
> What are all the difference between Bindable APIs & Non-Bindable APIs ?
> 
> I know, One is bindable to the PGM Object and the other is Non-bindable to
> *PGM's.
> 

One big difference is how optional parameters are handled.

For the PGM APIs, the term used in the documentation is "optional".  You
can leave the parameter completely out of your call.  

       call api(parm1, parm2, optionalparm3)
       call api(parm1, parm2)

For the CEE APIs, the term used in the documentation is "omissible". 
You still have to pass something for the parameter; if you leave it out,
random bad things can happen.  In RPG, you code OPTIONS(*OMIT).

       call api(parm1, parm2, optionalparm3)
       call api(parm1, parm2, nullpointer)
It depend on your programming language exactly how you pass that
nullpointer.  In RPG, you code *OMIT; in C, you code NULL; in COBOL, you
code OMITTED.  (I don't think it's possible to omit parameters in CL.)


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.