|
View previous topic :: View next topic
|
| Author |
Message |
kvamsy
New User
Joined: 14 Apr 2009 Posts: 10 Location: chennai
|
|
|
|
Input file having as Rows
2345677
13235
I want to add those two and subtract with 45667777 and divide with same number to find out percentage.
Please let me know is there any way to do in ICETOOL or DFSORT. |
|
| Back to top |
|
 |
sqlcode1
Active Member
Joined: 08 Apr 2010 Posts: 577 Location: USA
|
|
|
|
kvamsy,
Are you going to have multiple records or these are the only 2 records in a file?
If there are multiple records, do you want totals at any control break? if yes, please provide control break key fields?
What is the LRECL and RECFM of the input file? What is the data type for the field that you want to sum and data type for the output field?
Show us an example of expected output.
Thanks, |
|
| Back to top |
|
 |
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
This wins the award for the most unintelligible specification ever written.
Please try again, with an example maybe. |
|
| Back to top |
|
 |
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
| have you looked in the index of the dfsort programming guide? |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| daveporcelan wrote: |
| This wins the award for the most unintelligible specification ever written. ... |
nah, it is not that bad, at least we know he wants to multiply and divide and use sort. |
|
| Back to top |
|
 |
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1056 Location: Richmond, Virginia
|
|
|
|
| Also grammar is 99% correct and spelling is perfect. |
|
| Back to top |
|
 |
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
| dbzTHEdinosauer wrote: |
| daveporcelan wrote: |
| This wins the award for the most unintelligible specification ever written. ... |
nah, it is not that bad, at least we know he wants to multiply and divide and use sort. |
From what I read it is Addition, subtraction, and division but no multiplication. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
| Craq Giegerich wrote: |
| dbzTHEdinosauer wrote: |
| daveporcelan wrote: |
| This wins the award for the most unintelligible specification ever written. ... |
nah, it is not that bad, at least we know he wants to multiply and divide and use sort. |
From what I read it is Addition, subtraction, and division but no multiplication. |
 |
|
| Back to top |
|
 |
Akatsukami
Global Moderator

Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
| Craq Giegerich wrote: |
| dbzTHEdinosauer wrote: |
| daveporcelan wrote: |
| This wins the award for the most unintelligible specification ever written. ... |
nah, it is not that bad, at least we know he wants to multiply and divide and use sort. |
From what I read it is Addition, subtraction, and division but no multiplication. |
You didn't read the title  |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Thou shalt not bear false witness against thy subject. . .
Yup, it must be Friday. . .
d |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
| Quote: |
Please let me know is there any way to do in ICETOOL or DFSORT.
|
First, you have to do a better job of explaining what it is exactly that you want to do.
Show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file. |
|
| Back to top |
|
 |
|
|