Page 1 of 1

Compare the value in a symbolic?

PostPosted: Fri Aug 08, 2008 2:20 am
by hjyoungii
I would like to know if there is a way to compare the value in a symbolic.

What I want to do is have a check to see if the symbolic is for test or production. After determining that, have it go to the appropriate procedure.

Re: Compare the value in a symbolic?

PostPosted: Fri Aug 08, 2008 2:40 am
by Bill Dennis
If &TYPE was either TEST or PROD, you could do this:

// SET TYPE=TEST
//* INVOKE THE PROC
//ST1   EXEC PROC=RUN&TYPE


to get either proc RUNTEST or RUNPROD

Re: Compare the value in a symbolic?

PostPosted: Fri Aug 08, 2008 9:39 pm
by hjyoungii
Thank you for your assistance. This worked out great for me.