Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

CLIST & REXX :: Can I traverse a STEM variable?

$
0
0
Author: chong.zhou
Subject: Can I traverse a STEM variable?
Posted: Wed May 31, 2017 3:54 pm (GMT 5.5)

I'm learning rexx, so my question might be silly. Sorry for that icon_smile.gif

If I have a STEM variable containing many items, but the keys (a.k.a. the tails) are not necessarily sequential numbers, but perhaps are some key strings.

Can I traverse the STEM and process each item?

Example STEM:

stemVar.1 = 'ascasc'
stemVar.abc = '2353235'
stemVar.567 = 'qju&*j'
...

Can I process each item in stemVar without knowledge of the tail names?

...or,

Is thinking a STEM as a STL container the root cause of my problem?

Thank you in advance!


Viewing all articles
Browse latest Browse all 8500

Trending Articles