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



Could you change to

D DSRV0100 DS 8180 Qualified
D Test 1 8179
D BytesRet 10i 0 inz(123456789) overlay(Test:1)
D BytesAvl 10i 0 inz(%len(DSRV0100)) overlay (Test:11)
D ServerOffset 10i 0 inz overlay(Test:21)
D NbrServers 10i 0 inz overlay(Test:31)
D LenServer 10i 0 inz overlay(Test:41)

Then

EVAL %substr(DSRV0100.test 1 10):x

For

00000 075BCD15 40404040 4040.... ........ - .$ò. ......



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Tuesday, November 22, 2011 12:58 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Want to see the DS raw, not just the subfields

On 22-Nov-2011 07:14 , rob@xxxxxxxxx wrote:
rob on 11/21/2011 05:28 PM wrote:

I am debugging an rpgle program.
D DSRV0100 DS 8180 Qualified
D BytesRet 10i 0 inz(0)
D BytesAvl 10i 0 inz(%len(DSRV0100))
D ServerOffset 10i 0 inz(0)
D NbrServers 10i 0 inz(0)
D LenServer 10i 0 inz(0)
I want to see the whole contents of DSRV0100 (or a large chunk of that
huge variable. I do NOT want to see just the subfields like:

EVAL DSRV0100
DSRV0100.BYTESRET = 2060
DSRV0100.BYTESAVL = 2060
DSRV0100.SERVEROFFSET = 20
DSRV0100.NBRSERVERS = 8
DSRV0100.LENSERVER = 255

EVAL %SUBSTR(DSRV0100 3 5)
CPF7E59-String type error occurred.
"The identifier in position 26 of the input buffer is not a string."

EVAL %SUBSTR(DSRV0100:C 3 5)
CPF7E15-Syntax error occurred.
"A syntax error was discovered in position 22 of the input buffer.

EVAL %SUBSTR(DSRV0100:C 3 5)
1234567891123456789212
Doesn't like the colon.

I have to scroll through this
EVAL DSRV0100:C 8180


Add something like the following to the code:

<code>

d DSstr@ S *
d DSstr S 9999A based(DSstr@)
...
/free
DSstr@ = %Addr(DSstr);

</code>

Then in debug, for example, request:

EVAL %substr(dsstr 5 9):x

00000 00001FF4 00000000 00...... ........ - ...4.....

Regards, Chuck

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.