You can use the CRTBNDC and CRTBNDCPP Create Bound Program commands to create a program (*PGM object) in one step.
The Create Bound Program commands combine the steps of compiling and binding. Using them is the same as first calling the CRTCMOD or CRTCPPMOD Create Module command, then calling the Create Program (CRTPGM) command, except that the module created by the Create Module command step is deleted after the CRTPGM step.
To use the Create Bound Program commands, the source member must contain a main() function.
Note: When a CRTPGM parameter does not appear in the Create Bound Program command, the CRTPGM parameter default is used. For example, the parameter ACTGRP(*NEW) is the default for the CRTPGM command, and is used for the Create Bound Program command. You can change the CRTPGM parameter defaults by using the Change Command Defaults (CHGCMDDFT) command.
You can use the CRTSQLCI command to start the ILE C compiler and create a program object. The SQL database can be accessed from an ILE C program if you embed SQL statements in the ILE C source.
Example
The options specified are:
CLE, the program attribute, identifies this program as an Integrated Language Environment program.
Select an option to see the compiler listing.
|
|
IBM-ILE Related Tutorials |
|
---|---|
IBM - RPG Tutorial | IBM DB2 Tutorial |
DB2 Using SQL Tutorial | IBM Mainframe Tutorial |
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 |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.