On Mon, 7 Jul 2025 14:48:44 -0500, Thomas David Rivers wrote:
>
>This does a check for the endianness of the machine and properly
>reads values. I've included a demonstration test.
>
Why not go byte-byte and form each halfword as:
( unsigned short ) ( byte[ 2n ] * 256 + byte[ 2n + 1 ] )
And Mike Schwab suggests using MVCIN. I suspect
this would copy the entire string then process it
backwards.
--
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN