On Thu, 29 Dec 2011 09:58:45 -0600, McKown, John wrote:

>Is there a simple way in HLASM to determine if a byte
>an be consider "printable"...
>Is there a macro buried somewhere which has this
>information in it?

Both SVC 51 (SNAP, SYSABND, SYSUDUMP) and IPCS do this.
Seems to me that D GRS does as well, and maybe other
components.

>
>What I'm doing is writing a subroutine to "encode" a
>string. If the byte is "printable", just move it into
>the output buffer. If it is not "printable", then
>output a three byte sequence: %hh where hh is the hex
>encoding. Or is there a better encoding method? I want
>"printable" so that I can output the data which I'm
>getting from an ISQUERY result.

I look at ENQ information from time to time using IPCS
and like the way that it formats the data, similar to
storage in a dump.  The hex and EBCDIC are on the same
line.  I don't think I'd like to look at it in the
format that you've described, but that's just me.  Did
you consider what you would do if there are % characters
in the data?

RNAMEs can be pretty long.

--
Tom Marchant

Reply via email to