| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| vkrishna2001 Beginner
 
  
 Joined: 07 Aug 2003
 Posts: 46
 Topics: 18
 Location: Danbury
 
 | 
			
				|  Posted: Wed Sep 01, 2004 9:11 am    Post subject: Totalling an amount field value. |   |  
				| 
 |  
				| Hi I have a input file with the layout mentioned below
 
 01    INPUT-RECORD.
 05   INPUT-TEXT          PIC    X(10).
 05   INPUT-AMOUNT     PIC  -9(13).9(2).
 
 I need to design an application which would sum INPUT-AMOUNT of all the records and writes total to an output file.  If INPUT-AMOUNT is zoned decimal, packed decimal or binary field I believe SYNCSORT can be used.  Other option is Cobol or Easytrieve.  Can this be achieved with SYNCSORT or FILE-AID or any other tool?  Any suggestions are welcome.
 
 Thanks,
 Vijayakrishna
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |