If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > type i descriptor returning total value

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-10, 10:46
samiam44 samiam44 is offline
Registered User
 
Join Date: Jan 2008
Posts: 10
type i descriptor returning total value

Listed below is a type I descriptor I am using to get a total number of records per account for a 90 day period (co.18;co.18 + 90). @4 gives me the date for each record I need. @5 should be the monitary value for each record. @12 gives me the total number of records for that period. I need to include another field that would give me the total value of @5 for each record.

I can't seem to find my problem or if this is even possible to do. Any help will be appreciated.

0002: FIELD(@ID,'*',1,2);TRANS(AP.FLE,@1,77,'X');IF @2 THEN @1:'*':@2 ELSE ''; TRANS(PO.FLE,@3,66,'X');EXTRACT(@4,65,0,0);CO.18;C O.18+90;SUBR('-GES',@4 ,REUSE(@6));SUBR('-LTS',@4,REUSE(@7)) ;@8+@9;SUBR('-EQS',@10,REUSE(2));SUM(@11)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On