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
 

 

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
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 3 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts SUBSTR for Date functions Shaheen Shaik DB2 4 Thu Apr 06, 2017 2:14 pm


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