In ANSI and SAA REXX, string is the only type and all numbers are strings,
although some implementations treat numbers as a special case for optimization.
DATATYPE9n) operatesw on an expression and classifies its value. In oorexx,
things are different with classes and method, as in
say 'x.'~class
The String class
................................................ REXXTRY.CMD on OS/2
say x.~class
The Stem class
--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3
________________________________________
From: IBM Mainframe Discussion List [[email protected]] on behalf of
René Jansen [[email protected]]
Sent: Friday, February 18, 2022 2:42 AM
To: [email protected]
Subject: Re: Rexx routine to dump all variables when debugging?
In Classic Rexx the main types are string and number. All Rexx has datatype().
It tells you if a string is Alphanumeric, Binary, Lower case, uppoer case,
mixed case, a number, a symbol (a vakid Rexx symbol, a whole number, or a hex
number.
NetRexx has the JVM’s introspection (reflection).
Open Object Rexx also has a complete set of reflection operations. In ooRexx
you can send a message to any object to get to know its Class. A complete
reference card for ooRexx has been made using reflection.
best regards,
René.
> On 18 Feb 2022, at 04:35, David Crayford <[email protected]> wrote:
>
> Does REXX (any implementation other than the JVM) have introspection
> capabilities? I suspect not as the only type is a string.
>
> On 17/2/22 1:07 am, Farley, Peter x23353 wrote:
>> Sent to both IBM-MAIN and TSO-REXX
>>
>> Is there any available routine / function package that a z/OS TSO Rexx
>> program can use like the oorexx function SysDumpVariables for debugging
>> purposes?
>>
>> I have looked through the CBT File001 descriptions and looked at both Mark
>> Zelden and Lionel Dyck's pages but found nothing like this available. My
>> google-fu has failed me as well, nothing but the oorexx function turns up in
>> any of my searches.
>>
>> TIA for any pointer or RTFM you can provide.
>>
>> Peter
>>
>> This message and any attachments are intended only for the use of the
>> addressee and may contain information that is privileged and confidential.
>> If the reader of the message is not the intended recipient or an authorized
>> representative of the intended recipient, you are hereby notified that any
>> dissemination of this communication is strictly prohibited. If you have
>> received this communication in error, please notify us immediately by e-mail
>> and delete the message and any attachments from your system.
>>
>> ----------------------------------------------------------------------
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to [email protected] with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN