That depends on what the trick is. Dumping storage would certainly give you all of the variables, but if you want the names and values nicely formatted then you need a custom routine such as those discussed here.
-- Shmuel (Seymour J.) Metz http://mason.gmu.edu/~smetz3 ________________________________________ From: IBM Mainframe Discussion List [[email protected]] on behalf of Joseph Reichman [[email protected]] Sent: Thursday, February 17, 2022 10:28 AM To: [email protected] Subject: Re: Rexx routine to dump all variables when debugging? Before I started running my rexx exec I call an assembler program using call and passenvb This gives me access to Rexx program vector From which you can call IRXINIT in the parm block there is an option which subpool to use Wouldn’t segregating creation variables to let’s subpool 5 do the trick as I don’t think anything else would use it that then you can dump sp 5 > On Feb 16, 2022, at 4:37 PM, Seymour J Metz <[email protected]> wrote: > > ........................................... rexxtry.rex on WindowsNT > X. = "Preset" > ........................................... rexxtry.rex on WindowsNT > DROP X.42 > ........................................... rexxtry.rex on WindowsNT > Null = '' > ........................................... rexxtry.rex on WindowsNT > X.Null = "Empty!" > ........................................... rexxtry.rex on WindowsNT > > > call SysDumpVariables > Name=X., Value='Empty!' > Name=FOO, Value='123,456.78' > Name=NULL, Value='' > Name=VERSION, Value='REXX-ooRexx_4.2.0(MT)_32-bit 6.04 22 Feb 2014' > Name=INPUTRX, Value='call SysDumpVariables' > Name=SOURCE, Value='WindowsNT COMMAND C:\Program Files > (x86)\ooRexx\rexxtry.rex' > > Name=PROCRX, Value='rexxtry.rex' > Name=ARGRX, Value='' > Name=REMINDRX, Value='Enter 'exit' to end.' > Name=RESULT, Value='0' > Name=CONDITION, Value='a Directory' > Name=SYSRX, Value='WindowsNT' > Name=SECONDARY, Value='Nonnumeric value ("123,456.78") used in arithmetic > operation' > Name=TRACE, Value='Off' > Name=SIGL, Value='160' > Name=CURRENT, Value='call SysDumpVariables' > Name=SAVE, Value='' > Name=POSRX, Value='44' > Name=TEMPRX, Value=' rexxtry.rex on WindowsNT' > Name=BORDRX, Value='........................................... rexxtry.rex > on WindowsNT' > Name=PROMPTRX, Value='' > Name=PREV, Value='SysDumpVariables' > Name=SIGLRX2, Value='160' > Name=RC, Value='X' > Name=HELPRX, Value=' Or '?' for online REXX help.' > ........................................... rexxtry.rex on WindowsNT > say result > 0 > > ________________________________________ > From: IBM Mainframe Discussion List <[email protected]> on behalf of > Paul Gilmartin <[email protected]> > Sent: Wednesday, February 16, 2022 3:33 PM > To: [email protected] > Subject: Re: Rexx routine to dump all variables when debugging? > >> On Wed, 16 Feb 2022 17:50:32 +0000, Seymour J Metz wrote: >> >> It reports the compound variable but not the stem. >> > How does it report the DROPped member? > How does it report the member with the null string tail? > > From: Paul Gilmartin > Sent: Wednesday, February 16, 2022 12:30 PM > > For complete debugging, Rexx presents a challenge. How should DUMP > (STEMPUSH, STEMEDIT, ...) report: > X. = "Preset" > DROP X.42 > Null = '' > X.Null = "Empty!" > > (What does oorexx function SysDumpVariables do?) > > -- > gil > > ---------------------------------------------------------------------- > 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
