hi everyone,
could someone help me how to pass values from rexx to jcl?
its hard following the concept in manuals i have found...
here's what i got.
//EDITJCLB JOB
//*******************************************
//STEP1 EXEC PGM=FILEAID
//************************************************
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//DD01 DD DSN='my.dataset',
// DISP=(OLD,KEEP)
//SYSIN DD *
$$DD01 UPDATE IF=(1,EQ,C'ABC'),REPL=(1,C'CDE')
**can the DD01 be a variable whose value would be passed by the REXX program?
**can the parameters for the UPDATE IF part for the one to be changed and what to be replaced be a variable whose value is also from the rexx program..
REXX PROGRAM:
Variables above would depend on this rexx code:
varDSN='my,dataset’
varCHG=’data to be change’
varNEW=’new data’
ADDRESS TSO
"SUBMIT 'REXX.PGM(EDITJCLB)'"