Please check if the HOURGLAS utility is available in your shop.
Your requirement can be fulfilled with HOURGLAS utiliy.
If it is available, Go to your job.
Type HGDD on command line and type A (After) or B (Before) line command in the step where you want to alter system date and time.
It will take you to a panel wherein you can fill required details regarding date and time.
The system date and/or time will be overriden for that particular step.
For example in below JCL system date/time will get overriden for step02 only and for step03 it will not get overriden.
Contents of file XJNDSP.UPEN.STEP02.OUT are 2008-12-03-03.56.29 (You can set it to whatever valid date/time you wish)
Contents of file XJNDSP.UPEN.STEP03.OUT are 2009-12-28-02.56.29
Hope this helps!
//MYJOB001 JOB (@),'SAMPLE-JOB',
// CLASS=0,MSGCLASS=X,TIME=1,NOTIFY=&SYSUID
//*
//STEP01 EXEC UCC11RMS
//*
//STEP02 EXEC PGM=SORT
//*
//HGP0100 DD DUMMY HOURGLASS TIME
//HG108338 DD DUMMY HOURGLASS DATE OF 2008-12-03
//*
//SORTIN DD DSN=XJNDSP.UPEN.TESTFILE.IN,DISP=SHR
//*
//SORTOUT DD DSN=XJNDSP.UPEN.STEP02.OUT,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA
//*
//SYSIN DD *
SORT FIELDS=COPY,STOPAFT=1
OUTREC FIELDS=(1:DATE4)
/*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*
//STEP03 EXEC PGM=SORT
//*
//SORTIN DD DSN=XJNDSP.UPEN.TESTFILE.IN,DISP=SHR
//*
//SORTOUT DD DSN=XJNDSP.UPEN.STEP03.OUT,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA
//*
//SYSIN DD *
SORT FIELDS=COPY,STOPAFT=1
OUTREC FIELDS=(1:DATE4)
/*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//*