Get prior year using EZACFSM1
Posted: Fri Sep 11, 2015 1:26 pm
Hi - I need to get current year and subtract 1 from that and get the prior year. This prior year will be used as symbolic in the dataset name creation. My JCL will look like this but when I use &YR4 -1 does not work. Pls help me.
//STEP001 EXEC PGM=EZACFSM1
//SYSOUT DD SYSOUT=*
//SYSIN DD DATA,DLM=@@
// SET DTVAR = &YR4
@@
//SYSOUT DD SYSOUT=*
//SYSIN DD DATA,DLM=@@
// SET DTVAR = &YR4
@@