View previous topic :: View next topic
|
Author |
Message |
Venkata Ramayya
New User
Joined: 03 Dec 2007 Posts: 49 Location: United States
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
Venkata Ramayya
New User
Joined: 03 Dec 2007 Posts: 49 Location: United States
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
Venkata Ramayya
New User
Joined: 03 Dec 2007 Posts: 49 Location: United States
|
|
|
|
I tested this code. It's working. Thanks for your help.
Thanks
Venkat |
|
Back to top |
|
|
|