Compare the value in a symbolic?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Compare the value in a symbolic?

Postby hjyoungii » Fri Aug 08, 2008 2:20 am

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.
hjyoungii
 
Posts: 9
Joined: Wed Jun 25, 2008 6:42 pm
Location: Des Moines, IA
Has thanked: 0 time
Been thanked: 0 time

Re: Compare the value in a symbolic?

 

Re: Compare the value in a symbolic?

Postby Bill Dennis » Fri Aug 08, 2008 2:40 am

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
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Compare the value in a symbolic?

Postby hjyoungii » Fri Aug 08, 2008 9:39 pm

Thank you for your assistance. This worked out great for me.
hjyoungii
 
Posts: 9
Joined: Wed Jun 25, 2008 6:42 pm
Location: Des Moines, IA
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post