View previous topic :: View next topic
|
Author |
Message |
SumeetDuseja
New User
Joined: 12 Jul 2009 Posts: 9 Location: Pune
|
|
|
|
Hi
Is there any sample JCL which will provide the date which is one day Prior of date which I will mention inside the JCL...? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello Sumeet,
Your question is not very clear. If you just want to get previous date you can acheive it by running DSNTIAUL or DSNSTEP2 with below query
Code: |
SELECT CURRENT DATE -1 DAY
FROM SYSIBM.SYSDUMMY1
WITH UR; |
But not sure what you want to do with the date then. Please clearly specify ur requirement then will be able to provide help |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
JCL does not have any inherent capability to work with dates. Most job scheduling packages provide some method of handling dates. You need to explain in more detail what you are trying to do, as was already said. |
|
Back to top |
|
|
|