Tested examples are good. I sent an RCF, but didn't suggest examples. Also, it might be good to bold "hexadecimal" in the parameter description.
________________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Paul Gilmartin <0000042bfe9c879d-dmarc-requ...@listserv.ua.edu> Sent: Monday, December 19, 2022 3:01 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Rexx function STORAGE with weird behavior on Netview On Mon, 19 Dec 2022 16:29:37 +0000, Seymour J Metz wrote: >In REXX, a decimal number *IS* a string. > Yes. Trying the following instruction might be informative: say c2x( 10 ) c2x( '10' ) c2x( "10" ) > ... The semantics for the first parameter of STORAGE is the same on every > REXX implementation that I have used. > >For hexadecimal arithmetic, try something like FOO = D2X ( X2D(BAR) + X2D(BAZ) >) > The very brief section in the TSO/E Rexx User's Guide, "Using the STORAGE Function" would benefit from a *tested* example of using STORAGE() to follow a chain of control blocks. Such as: P = STORAGE( addr, 4 ) NEXT = STORAGE( C2X( C2D( P ) + OFFSET ), 4 ) /* Untested! */ The comment, "be sure that the values for REXXSTRF is ENABLE" seems most plausible. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN