You can display the value of scalar variables, expressions, structures, arrays, or errno and change the value of scalar variables and errno using the eval debug command. The module that is shown on the Display Module Source display must be bound to a program that is in a debug session. The scope of the variables used in the eval debug command is defined by using the qual debug command.The program must be called and stopped at a breakpoint or step location to display or change the value.
You can use the Enter key as a toggle switch between displays. You can change variables by using the eval debug command with assignment.
This example shows you how to use the F11 (Display variable) to display a variable.
Messages with multiple line responses will cause the Evaluate Expression display to be shown. This display will show all response lines. It also shows a history of the debug commands entered and the results from these commands. To return to the Display Module Source display, press the ENTER key. You can use the Enter key as a toggle switch between displays. Single-line responses will be shown on the Display Module Source message line.
You can also use the eval debug command to determine the value of an expression. For example, if j has a value of 1024, type eval (j * j)/512 on the debug command line. You use the qual debug command to determine the line or statement number within the function that you want the variables scoped to for the eval debug command. The Evaluate Expression display shows ( j * j)/512 = 2048.
This example shows you how to use the eval debug command to assign an expression to a variable.
Note: You do not always have to use the qual debug command before the eval debug command. An automatic qual is done when a breakpoint is encountered or a step is done. This establishes the default for the scoping rules to be the current stop location.
For example, ″eval hold_formatted_cost  = ’#’″ changes the array element at 1 from $ to # and shows ″hold_formatted_cost= ’#’ = ’#’:″ on the Display Module Source display as shown:
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.