%SUBSTR is valid in STRDBG too
Page 1 of 1
%SUBSTR is valid in STRDBG too
Do you know %SUBSTR is valid in STRDBG too?
If you want to break a program when a variable has a certain value, you can use a conditional break point.
In the following example, the program breaks at statement 555 if variable EMPNAM has the value 'RAM'.
break 555 when EMPNAM = 'RAM'
Suppose you want to stop when part of a field contains a certain value?
The debugger provides a substring function that can accomplish that task. Here's the command to break if the 5th, 6th and 7th characters of EMPNAM are RAJ.
break 555 when %substr(EMPNAM 5 3) = 'RAJ'
Happy debugging!
If you want to break a program when a variable has a certain value, you can use a conditional break point.
In the following example, the program breaks at statement 555 if variable EMPNAM has the value 'RAM'.
break 555 when EMPNAM = 'RAM'
Suppose you want to stop when part of a field contains a certain value?
The debugger provides a substring function that can accomplish that task. Here's the command to break if the 5th, 6th and 7th characters of EMPNAM are RAJ.
break 555 when %substr(EMPNAM 5 3) = 'RAJ'
Happy debugging!
Similar topics
» Is that valid in CL program?
» When we debug using STRISDB, Debug screen is not opening instead we get the error screen.
» How can I use STRISDB and STRDBG at the same time?
» When we debug using STRISDB, Debug screen is not opening instead we get the error screen.
» How can I use STRISDB and STRDBG at the same time?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|