Page 1 of 1

variables passing in the include statement

PostPosted: Wed Sep 16, 2009 8:02 pm
by MAINFRAMETESTER
Can we pass variables set in the jcl to referenced in the include statement. For example see below

// SET VAR1='ABCD'

//SORT PGM=SORT
...
//SYSIN DD *
INCLUDE COND=(6,1,CH,EQ,&VAR1)
SORT FIELDS=(19,16,CH,A,11,4,PD,A,7,4,FI,A)

Basically i have a requirement to use same proc from different jcls and the value in variable VAR1 may change based on the JCL?
Is there a way this can be accomplished?

Re: variables passing in the include statement

PostPosted: Wed Sep 16, 2009 9:21 pm
by MrSpock
See this previous topic. Same issue, same suggestion.