Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Capture the date and time thru JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Venkata Ramayya

New User


Joined: 03 Dec 2007
Posts: 39
Location: United States

PostPosted: Tue Jul 29, 2008 8:41 pm    Post subject: Capture the date and time thru JCL
Reply with quote

Hi,

Can we capture the current date and time thru DFSORT/ICETOOL?

I would appreciate if any one will get back to me.

Thanks
Venkat
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Jul 29, 2008 10:05 pm    Post subject:
Reply with quote

Yes. DFSORT and DFSORT's ICETOOL have various date and time functions for various purposes such as DATE1, DATE=(4MD/), TIME1, TIME=(24:), etc.

Exactly which date and time function you'd use depends on what exactly you're trying to do. Your description "Can we capture the current date and time thru DFSORT/ICETOOL?" is too vague for me to tell you how to do what you want to do. You need to describe what you're trying to do in more detail.
Back to top
View user's profile Send private message
Venkata Ramayya

New User


Joined: 03 Dec 2007
Posts: 39
Location: United States

PostPosted: Tue Jul 29, 2008 11:17 pm    Post subject:
Reply with quote

Thanks for you quick response Frank..

I want to store the date and time in a parm card like this

----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
MMDDYY HHMMSS

I will validate the time in the parm card and base on the time I will set a trigger to some set of jobs thru sastrlr step.

Thanks
Venkat
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Jul 29, 2008 11:28 pm    Post subject:
Reply with quote

Here's a DFSORT job that will do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN                   
//SYSOUT    DD  SYSOUT=*                   
//SORTIN DD *                               
//SORTOUT DD DSN=...  output file (FB/80)                       
//SYSIN    DD    *                         
  OPTION COPY                               
  OUTFIL REMOVECC,NODETAIL,                 
    TRAILER1=(DATENS=(MDY),X,TIMENS=(24))   
/*
Back to top
View user's profile Send private message
Venkata Ramayya

New User


Joined: 03 Dec 2007
Posts: 39
Location: United States

PostPosted: Wed Jul 30, 2008 12:03 am    Post subject:
Reply with quote

I tested this code. It's working. Thanks for your help.

Thanks
Venkat
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. 00D3003B - time outs in DB2 when invo... chavinash2004 DB2 2 Mon Oct 09, 2017 4:39 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Validate the Date girishb2 DFSORT/ICETOOL 9 Tue Sep 19, 2017 1:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us