× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I assume Joe P was talking about being able to view %EOF, %ERROR, %FOUND
(and ideally, edit them, obviously). Perhaps also being able to position
the cursor on either of the '%date' bits of the following line and get a
value returned:

if %date(myField) > %date();

As you have found out, debug does have its own version of a %SUBSTR
built-in-function, but not any others (except the *massively* useful
%LOCALVARS).

On Tue, Nov 22, 2011 at 10:54 AM, <rob@xxxxxxxxx> wrote:

Apparently you CAN eval the results of a bif. As Chuck points out, this
works
EVAL %substr(dsstr 5 9)
or
EVAL %substr(dsstr 5 9):x

You just can't put a ds name in the debugger like you could in RPG
EVAL %substr(dsrv0100 5 9)
CPF7E59-String type error occurred.
Cause . . . . . : The identifier in position 26 of the input buffer is
not a string.
Recovery . . . : Correct the identifier and enter the expression again
or use the :C formatting option to display the variable as a character
string. In the ILE System Debugger this is done by entering: EVAL
variable : C
And the help doesn't help with a conversion trick. IOW you can't
EVAL %substr(dsrv0100:C 5 9)
CPF7E15-Syntax error occurred.

Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





From: Joe Pluta <joepluta@xxxxxxxxxxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>,
Date: 11/22/2011 10:53 AM
Subject: Re: Want to see the DS raw, not just the subfields
Sent by: rpg400-l-bounces@xxxxxxxxxxxx



On 11/22/2011 9:14 AM, rob@xxxxxxxxx wrote:
EVAL %SUBSTR(DSRV0100 3 5)
CPF7E59-String type error occurred.
Cause . . . . . : The identifier in position 26 of the input buffer is
not a string.



Yeah, I only wish you could EVAL the results of a BIF. In fact, I'd put
that as my number one enhancement to any of the IBM i debugging tools.
The ability to see things like %EOF (and better yet to CHANGE them on
the fly!) would really make debugging and testing easier.

Joe
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.