[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference ilbbak::ibi_focus

Title:FOCUS, from INFORMATION BUILDERS
Moderator:ZAYIUS::BROUILLETTE
Created:Thu Feb 19 1987
Last Modified:Mon May 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:615
Total number of notes:1779

461.0. "FORMAT question similar to note 344" by CSLALL::COLBERT () Mon Sep 30 1991 15:36

    I have a format question:
    
    Currently the report looks like this
    
    TRANSACTION_NO    DOCUMENT_NO
    1111              ABC
                      XYZ
                      IOU
    
    Need this format
    
    TRANACTION_NO     DOCUMENT_NO 
    
    1111              ABC           XYZ        IOU
    
    There is a maximum of 3 document_no for any 1 transaction
    
    
    I've tried defining columns and using across statements.
    The closet I could get was an output that looked like
    
    TRANSACTION_NO    DOCUMENT_NO
    1111              .              .         IOU
                      .             XYZ
                      ABC 
    
T.RTitleUserPersonal
Name
DateLines
461.1Try this...RDGE44::KEEGAN_9Tue Oct 01 1991 04:4520
Try this (assuming ALWAYS maximum of 3 documents per transaction) ...

                                                                  
TABLE FILE XXXXX
LIST DOCUMENT_NO
BY TRANSACTION_NO
ON TABLE HOLD
END
DEFINE FILE HOLD
DOC1/A3 = IF E02 EQ 1 THEN DOCUMENT_NO ELSE ' ';
DOC2/A3 = IF E02 EQ 2 THEN DOCUMENT_NO ELSE ' ';
DOC3/A3 = IF E02 EQ 3 THEN DOCUMENT_NO ELSE ' ';
END
TABLE FILE HOLD
SUM MAX.DOC1 MAX.DOC2 MAX.DOC3 BY TRANSACTION_NO
END

Regards,

Paul K
461.2E02 is not recognizedCSLALL::COLBERTWed Oct 02 1991 11:141
    E02 is not recognized.
461.3it works for me !RDGE44::KEEGAN_9Wed Oct 02 1991 11:3210
    Hi, again
    
    Sorry, BUT, I've just retried the code in .1 and it works with NO problem.
    
    (I used E02 - that's E-zero-2, because LIST, which is the resultant
    fieldname might confuse FOCUS as a reserved word).
    
    Paul K
          
    
461.4Corrections madeCSLALL::COLBERTWed Oct 02 1991 11:4611
    I made a typing error on the DEFINE FILE HOLD,  I typed the original
    amster file.
    
    I then got foc error 280 - "mishmash in data types... quotation marks
    may be missing"
    
    So I changed EQ 1 to EQ '1' 
                         EQ '2'
                         EQ '3'
    The report print.  Now I need to find why there is no data printing
    to MAX.DOC1 etc.  Maybe the data is really not on file.