|
"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 mailing list archive is Copyright 1997-2025 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.