After successfully creating an ILE C/C++ program, you can run your code. Activation is the process of getting an ILE C/C++ program or service program ready to run. When an ILE C/C++ program is called, the system performs activation. Because ILE C/C++ service programs are not called,they are activated during the call to an ILE C/C++ program that directly or indirectly requires their services.
Activations and activation groups:
When activation allocates the storage necessary for the static variables that are used by an ILE C/C++ program, the space is allocated from an activation group. At the time the ILE C/C++ program or service program is created, you specify the activation group that should be used at run time.
Once an ILE C/C++ program is activated, it remains activated until the activation group is deleted. Even though they are activated, programs do not appear in the call stack unless they are running.
When an OS/400 job is started, the system creates two activation groups for OPM programs. One activation group is reserved for OS/400 system code and the other is used for all other OPM programs. You cannot delete the OPM default activation groups. The system deletes them when your job ends.
An activation group can continue to exist even when the main() function of an ILE C/C++ program is not on the call stack. This occurs when the ILE C/C++ program was created with a named activation group (specifying a name on the ACTGRP option of the CRTPGM command), and the main() function issues a return. This can also occur when the ILE C/C++ program performs a longjmp() across a control boundary by using a jump buffer that is set in an ILE C/C++ procedure. This procedure is higher in the call stack and before the nearest control boundary.
IBM-ILE Related Interview Questions
|IBM - RPG Interview Questions||IBM DB2 Interview Questions|
|DB2 Using SQL Interview Questions||IBM Mainframe Interview Questions|
|IBM AIX 7 Administration Interview Questions||AS400 Interview Questions|
|Automatic Storage Management (ASM) Interview Questions||Mainframe DB2 Interview Questions|
|Rpgle Interview Questions|
Introduction To The Ile C/c++ Compiler
Creating A Program
Working With Exports From Service Programs
Example - Creating A Sample Ile C Application
Running A Program
Debugging A Program
Using Stream And Record I/o Functions With Iseries Data
Using Ile C/c++ Stream Functions With The Iseries Integrated File System
Using Externally Described Files In Your Programs
Using Database Files And Distributed Data Management Files In Your Programs
Using Device Files In Your Programs
Handling Exceptions In Your Program
Using Iseries Pointers In Your Program
Using Packed Decimal Data In Your C Programs
Internationalizing Your Program
International Locale Support
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.