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

Capture the date and time thru JCL


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Venkata Ramayya

New User


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

PostPosted: Tue Jul 29, 2008 8:41 pm
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 Developer


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

PostPosted: Tue Jul 29, 2008 10:05 pm
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: 49
Location: United States

PostPosted: Tue Jul 29, 2008 11:17 pm
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 Developer


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

PostPosted: Tue Jul 29, 2008 11:28 pm
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: 49
Location: United States

PostPosted: Wed Jul 30, 2008 12:03 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts Need to convert date format DFSORT/ICETOOL 20
Search our Forums:

Back to Top