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
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts Merging records, but not all the time prino DFSORT/ICETOOL 17 Sat Feb 17, 2018 4:20 pm
No new posts Need to identify top 10 costly or tim... ashek15 DB2 4 Wed Feb 14, 2018 3:20 am
No new posts Logic to skip Maximum time-stamp and ... vickey_dw DB2 2 Thu Feb 01, 2018 11:15 pm

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