Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need an example JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need an example JCL
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: 1187
Location: Bangalore,India

PostPosted: Tue Mar 23, 2010 4:35 pm    Post subject:
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: 7931
Location: Bellevue, IA

PostPosted: Tue Mar 23, 2010 4:58 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:



Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us