The reason for stem. = '' is that I have a usage of the value ''. Among other uses I often test if stem.xxx == '' for processing reasons.
I always have Signal On Novalue. Regards Thomas Berg ____________________________________________________________________ Thomas Berg Specialist z/OS\RQM\IT Delivery SWEDBANK AB (Publ) > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] > On Behalf Of Hunkeler, Peter (TLSG 4) > Sent: Friday, June 14, 2013 12:54 PM > To: [email protected] > Subject: Re: Thinking about utility for REXX: stem variable to JSON > encoding. > > >stem. = '' > > If you want to protect your code from inadvertently using "undefined" > variables, i.e. variables that have not been assigned a value, you code > SIGNAL ON NOVALUE > > With the above statement, the REXX interpreter will not detect when > you're using an "undefined" compound variable based on stem "stem.". > I don't use this default value assignment mechanism for the benefit of > detecting invalid variable references. > > -- > Peter Hunkeler > > ---------------------------------------------------------------------- > 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
