John McKown wrote: >Questions: If I decide on making the above an array: What if STEM.2 doesn't >exist? What if STEM.100 exists?
Easy, if you refer to an UNASSIGNED stem item, the default value is 'empty' if you try to refer to it. Do this on TSO to see (example from REXX Ref): /* rexx */ hole. = "empty" hole.9 = "full" say hole.1 hole.mouse hole.9 Result: empty empty full Your example: >STEM.0=3 >STEM.1=A >STEM.2=B >STEM.3=C >A="A" /* JUST TO BE SURE */ >STEM.A='BUBBA' say stem.0 stem.1 stem.2 stem.3 stem.a gives this 3 A B C BUBBA Again from your example: do i = 0 to 10 say stem.i end Yields this 3 A B C STEM.4 STEM.5 STEM.6 STEM.7 STEM.8 STEM.9 STEM.10 >I need to find an aspirin now. I'm almost convinced that I will need some >really "fancy" way to do this, if I want to try to accept all valid REXX stem >variable possibilities. No need for aspirin. Above examples should relieve you from any troubles. Groete / Greetings Elardus Engelbrecht ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
