Is there a way to pass a variable in a jcl into a member containing an sql statememt.
//UNLOAD EXEC PGM=DSNTIAUL
//SYSPUNCH DD DUMMY
//SYSREC00. DD DSN=MY.UNLOAD.TMP, DISP=(,CATLG),
// SPACE=(CYL,(10,10),RLSE)
//SYSIN DD DSN=MY.SQL.LIB(MYSQL1),DISP=SHR
MY.SQL.LIB(MYSQL1)
SELECT KDNR FROM TABKND WHERE TIMESTAMP= <--- here I would like to have the content of the variable that I would like to pass from my jcl.
I would really apreciate any help