Pass symbolic variables as INSTREAM



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

Pass symbolic variables as INSTREAM

Postby sumeendar » Mon Aug 25, 2014 12:26 pm

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
/*
sumeendar
 
Posts: 6
Joined: Fri Apr 13, 2012 5:08 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Pass symbolic variables as INSTREAM

Postby Terry Heinze » Mon Aug 25, 2014 7:02 pm

This was asked in May 2013. Did you try searching for "symbolic parameter sysin".
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: Pass symbolic variables as INSTREAM

Postby MrSpock » Tue Aug 26, 2014 8:11 pm

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.
/*

These users thanked the author MrSpock for the post:
DonkeyKong (Thu Oct 02, 2014 10:16 pm)
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post