|
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 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.