On: Wed, Nov 08, 2006 at 11:16:27AM -0600,Huegel, Thomas Wrote:

} Hi Plummers,
} 
} I have a little PIPE question.
} 
} I have an exec where I build a stem as follows.
} 
} field1 = HELLO
} field2 = GOODBY
} .
} .
} field99 = THE END
} TABLE.0101 = field1
} TABLE.0202 = field2
} .
} .
} .
} TABLE.2480 = field99
} 
} SAY TABLE.0101      will say 'HELLO'
} SAY TABLE.0202      will say 'GOODBY'
} 
} When I try to use a pipe like.
} pipe stem TABLE. | console 
} I don't get any entries that start with 0xxx ie 0001 thru 0999.

Well Thomas,  Miguel has told you why its not working.

Let me give you the rudiments of a way to get what you want.  I don't
have a VM system handy to try this on so I will have to wing it.

Use the REXXVARS stage, which will dump out all of the variables defined
to that point, and filter the output to get only the TABLE.xxxx items.

The output will in part) look like:

n TABLE.0101
v 'HELLO'
n TABLE.0202
v 'GOODBY'

"n" lines are names, "v" lines are the values.  You will have to look
for lines starting "n TABLE." and take the tail and the following line
with the value for whatever you need them for.

Reply via email to