KB Article 10343
2013/12/11

Close
X
Contact Tech Support

 Email Tech Support
 (250) 655-1766
 [7:30 - 5:00 PST]
Your Meeting ID will be Provided by a Rep.
Tech Support
Tech Support Home
Software Updates
Knowledge Base Search
Recent KB Articles
Product FAQs
Code Samples
Documentation
Tech Blog
System Requirements
Installation Instructions
Support Testimonials
Contact us to...
Create a Ticket
Request a Free Demo
Suggest a New Feature
Submit Feedback
Upload a Large File
Other Services
Software Training
Professional Services

What is the difference between call() and callb()?

Product: WebSmart ILE Type: Frequently Asked Question

Both functions have the same structure, but the call function is used to execute code from a non-CGI program located on the i Series while callb is used to reference modules.

  • VOID call(ALPHA pgm, ALPHA lib="*LIBL",FIELD parm...)
  • VOID callb(ALPHA pgm, ALPHA lib="*LIBL", FIELD parm...)

IBM i modules are program components that are packaged together inside an executable object. Callb takes these modules and binds them to your WebSmart program when it is compiled. Your program will have access to all of the code within the module.

If you modify a program that is being referenced by the call function, those changes will propagate through all other programs that reference it. Changing a module will have no effect, as the program using callb will have to be recompiled and rebound in order to use the updated module.

You can view more information about these functions by moving your text cursor over them and pressing F1 in the WebSmart IDE.

Rate This Article

Did this example help you to achieve your goal?
 Yes  No  Don't Know

Enter additional comments below.   If you want to hear back from us, include your contact information.

Email Address:
Comments:
Please enable JavaScript in order to rate this page.