IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Need an example JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SumeetDuseja

New User


Joined: 12 Jul 2009
Posts: 9
Location: Pune

PostPosted: Tue Mar 23, 2010 4:20 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Mar 23, 2010 4:35 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Mar 23, 2010 4:58 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Search our Forums:

Back to Top