Page 1 of 1

Pass symbolic variables as INSTREAM

PostPosted: Mon Aug 25, 2014 12:26 pm
by sumeendar
can we pass symbolic variables as sysin values,
I tried as below, but it is giving error. Any other way to handle this situation.

// SET COMP='ABCD',
// MONTH='06'
//*
//STEPD EXEC PGM=BPXBATCH,REGION=0M
//STDPARM DD *
SH /aaa/t/exbatch.sh
&COMP
&MONTH
/*

Re: Pass symbolic variables as INSTREAM

PostPosted: Mon Aug 25, 2014 7:02 pm
by Terry Heinze
This was asked in May 2013. Did you try searching for "symbolic parameter sysin".

Re: Pass symbolic variables as INSTREAM

PostPosted: Tue Aug 26, 2014 8:11 pm
by MrSpock
You left out a few crucial parameters (this is only possible with z/OS v2r1):

// EXPORT SYMLIST=(COMP,MONTH)       
// SET COMP='ABCD',MONTH='06'
//*
//STEPD EXEC PGM=BPXBATCH,REGION=0M
//STDPARM DD *,SYMBOLS=JCLONLY   
SH /aaa/t/exbatch.sh
&COMP.
&MONTH.
/*