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
 

 

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: 8593
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: 10232
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: 6966
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: 2033
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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm


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