MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Subtraction Using Sort or ICETOOL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
puttu
Beginner


Joined: 29 Jul 2010
Posts: 41
Topics: 9

PostPosted: Thu Aug 12, 2010 12:06 am    Post subject: Subtraction Using Sort or ICETOOL Reply with quote

Hi All,

I need to do subtraction using sort or icetool.

Please find the below details of my complete requirement.

I'm having one input file with 80 record length.Kindly find input file structure.
1st position to 16th position Time (2010080616342321)
17th & 18th position spaces
19th position to 34th position again Time (2010080613243121).

Now i need to subtraction 19th position to 34th position date to -4000000
(example: 2010080613243121 - 4000000) and result i need to put in output file.

My output file should be
1st position to 16th position Time (2010080616342321)
17th & 18th position spaces
19th position to 34th position again Time (2010080613243121).
40th position to 56th position which we got result using subtraction.

Rgds,
Puttu
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Aug 12, 2010 12:08 am    Post subject: Reply with quote

puttu,

Sort Products do NOT have the ability to subtract days from a date.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
puttu
Beginner


Joined: 29 Jul 2010
Posts: 41
Topics: 9

PostPosted: Thu Aug 12, 2010 12:35 am    Post subject: Reply with quote

Hi Kolusu,

Its is not to subtract days.
We need to do subtraction Time.

Please find the details:
(Example: 2010080613243121 - 4000000)
For above example 2010080613243121 - YYYYMMDDHHMMSSMS
4000000 - Time i converted from GST.

Example:(13243121 - 4000000) and result i need to put in output file as i told previously.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Aug 12, 2010 12:50 am    Post subject: Reply with quote

puttu,

What is the expected result of 13243121 - 4000000?

I am sure it is not plain math subtraction because if you are doing that it would result in a invalid time 9243121.

What is 4000000? is it seconds or minutes or hours or milliseconds or microseconds?

A single day(24 hours) has 86400 seconds and you are trying to subtract 4000000?

You need to do a better job of describing what you are trying to do.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group