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
 
How to increment time stamp by 10 secs in a loop

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Anurag Singh

New User


Joined: 20 Jan 2008
Posts: 25
Location: India

PostPosted: Wed Sep 16, 2009 1:59 pm    Post subject: How to increment time stamp by 10 secs in a loop
Reply with quote

Hi,
I have a file with 1000 records , now my requirement is as like i need to increment the timestamp by 10 secs for each of the 1000 records using REXX.

KIndly guide.

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

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8657
Location: Back in jolly old England

PostPosted: Wed Sep 16, 2009 2:01 pm    Post subject:
Reply with quote

A rather strange request. And unfortunately not very well stated.

Is this a new timestamp, and existing timestamp ???
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10457
Location: italy

PostPosted: Wed Sep 16, 2009 2:02 pm    Post subject: Reply to: How to increment time stamp by 10 secs in a loop
Reply with quote

where do You have problems...
with the logic or with rexx ...
what is the format of the timestamp ?
Back to top
View user's profile Send private message
pdighade

New User


Joined: 21 Jul 2008
Posts: 40
Location: pune

PostPosted: Mon Mar 29, 2010 10:07 pm    Post subject: Reply to: How to increment time stamp by 10 secs in a loop
Reply with quote

If we want to increment the timestamp by 10 sec in loop for below format

suppose timestamp start from
hh:mm:sec.ms
23:21.12.01

How we can do that Please suggest
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6970
Location: porcelain throne

PostPosted: Mon Mar 29, 2010 10:23 pm    Post subject:
Reply with quote

is this thread related to http://ibmmainframes.com/viewtopic.php?t=47756
Back to top
View user's profile Send private message
pdighade

New User


Joined: 21 Jul 2008
Posts: 40
Location: pune

PostPosted: Mon Mar 29, 2010 10:33 pm    Post subject: Reply to: How to increment time stamp by 10 secs in a loop
Reply with quote

No this thread is not related to this one just I wanted to know the
syntax for calculating the diff of timestamps and functions like addition od min or sec to timestamps. Other post is different
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2104
Location: Silicon Valley

PostPosted: Tue Mar 30, 2010 2:04 am    Post subject: Reply to: How to increment time stamp by 10 secs in a loop
Reply with quote

1. use PARSE instruction to get individual variables for hh, mm and ss.
2. convert hh into seconds and mm into seconds
3. add all together.
4. add 10 to that result

do the reverse (sort of) to get back to timestamp format.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts Query to skip Max time-stamp and fetc... vickey_dw DB2 8 Sun Jan 28, 2018 1:09 am

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