[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

476.0. "NOSPLIT Option" by KURMA::SACAMPBELL (Too Fast to Live, Too Young to Die !!) Wed Oct 30 1991 05:46

	I have a Focus course manual where there is an option NOSPLIT. It says
this option won't be available until V6.0 (the course was over a year ago).
Using NOSPLIT with the ON or BY phrase, Focus determines the the number of lines
related to the new value and if it can fit them on remaining lines of the page,
it will. If it cannot the values start on the next page.

I have an application where NOSPLIT seems to be the ideal option. When I try to
code it I get the error :

	A Word is not Recognised : NOSPLIT

What I would like to know is :

	o Was the Focus instructor telling untruths (ok, lies)

      or

	o If not, why am I getting the error.

Usage is as follows :

	TABLE FILE whatever
	PRINT field1 field2 ano_field
	BY sort_field SKIP-LINE NOPRINT NOSPLIT
	ON TABLE HOLD AS 'anything' FORMAT DOC
	END


		All help gratefully accepted,

					Stuart.
T.RTitleUserPersonal
Name
DateLines
476.1AIMHI::CIONI_LWed Oct 30 1991 15:547
Just looked in my V6.1 documentation and don't see a thing on NOSPLIT -
looks under the set parameters as well with no luck - 

Just an FYI - 

LisaC
476.2NOSPLITting hairs, IBM/VAX differences.HAMSTR::BAMFORTHThu Oct 31 1991 16:266
    
    I've used the NOSPLIT option on version 6+ on the IBM, but the VAX
    version doesn't yet have the option available.  So much for identical 
    V6+ FOCUS offerings. 
    
    
476.3Not till V6.5 MASALA::SACAMPBELLToo Fast to Live, Too Young to Die !!Fri Nov 01 1991 06:2614
  After being transferred between 5 or 6 different people at the IBI office in 
London I finally got an answer to this question.

The NOSPLIT option will not be available on VAX till version 6.5(five). It was
available on V6.0+ for mainframes but not for VAX's. The guy told me that V6.5
is the version that brings commonality between all systems (Oh look, a flying
pig).

The question is, without the NOSPLIT is there any *SIMPLE* (note the emphasis on
*SIMPLE*) way to do this.



	Stuart.
476.4MKODEV::PETROPHBelieve it !!Fri Nov 01 1991 15:31116
    
	From pages 5-40,41,42 of 

	FOCUS TECHNIQUES
	Aids to System Development 
	Copyright 1987, by Information Builders, Inc.

	Grouping of Data when Page-Breaking
	-----------------------------------

Summary: In some reports, it would be desirable to keep all detail lines
	 of similar information on the same page (i.e., all detail lines
	 relating to a sort field value). Splitting detail lines usually
	 occurs if there are only a few detail lines per sort break, but
	 we don't want the last group to be split over a page break.

NOTE:	 - This feature will be available as the NOSPLIT command in
	   FOCUS Release 5.5. It will provide the same capabilities
	   as this technique, but will require only one pass of the
	   data.

	 - The key to the technique is the following:

	   - Determine the number of detail lines in a group.
	   - If the group cannot fit on the page then increment the
	     page counter.
	   - Place the required information in a HOLD file.
	   - Report from the HOLD file, performing page-breaking on
	     the calculated page counter field.

	 - The Dialogue Manager &MAXLINES variable is used to
	   determine the amount of space available for detail lines.

Example: The following example illustrates this technique using the
	 CAR FOCUS database.


   TABLE FILE CAR
   WRITE CNT.SALES
   BY COUNTRY
   PRINT CAR
         MODEL
         BODYTYPE
   COMPUTE LINECOUNT/I5=IF ( COUNTRY NE LAST COUNTRY ) AND
                           ( (C1+LINECOUNT) LE &MAXLINES ) THEN LINECOUNT+1
                   ELSE IF ( COUNTRY EQ LAST COUNTRY ) AND
                           ( LINECOUNT LT &MAXLINES ) THEN LINECOUNT+1
                   ELSE 1;
   PAGECOUNT/I5=IF LINECOUNT EQ 1 THEN PAGECOUNT+1 ELSE PAGECOUNT;
   BY COUNTRY
   ON TABLE HOLD
   END

   TABLE FILE HOLD
   PRINT BODYTYPE
   BY PAGECOUNT NOPRINT
   BY COUNTRY
   BY CAR
   BY MODEL
   ON PAGECOUNT PAGE-BREAK
   END

$ focus
FOCUS 6.1.1    (C)Copyright 1991 Information Builders Inc.
Licensed for Digital Internal  Administrative  Use (A87110072)
 
>>ex grouper
 
PLEASE SUPPLY VALUES REQUESTED
 
MAXLINES=>8
>
 NUMBER OF RECORDS IN TABLE=       18  LINES=       18
 
 HOLDING...
>
 NUMBER OF RECORDS IN TABLE=       18  LINES=       18
 
 PAGE     1
 
 
 COUNTRY     CAR               MODEL                     BODYTYPE
 -------     ---               -----                     --------
 ENGLAND     JAGUAR            V12XKE AUTO               CONVERTIBLE
                               XJ12L AUTO                SEDAN
             JENSEN            INTERCEPTOR III           SEDAN
             TRIUMPH           TR7                       HARDTOP
 FRANCE      PEUGEOT           504 4 DOOR                SEDAN

 PAGE     2
 
 COUNTRY     CAR               MODEL                     BODYTYPE
 -------     ---               -----                     --------
 ITALY       ALFA ROMEO        2000 4 DOOR BERLINA       SEDAN
                               2000 GT VELOCE            COUPE
                               2000 SPIDER VELOCE        ROADSTER
             MASERATI          DORA 2 DOOR               COUPE
 JAPAN       DATSUN            B210 2 DOOR AUTO          SEDAN
             TOYOTA            COROLLA 4 DOOR DIX AUTO   SEDAN

 PAGE     3
 
 COUNTRY     CAR               MODEL                     BODYTYPE
 -------     ---               -----                     --------
 W GERMANY   AUDI              100 LS 2 DOOR AUTO        SEDAN
             BMW               2002 2 DOOR               SEDAN
                               2002 2 DOOR AUTO          SEDAN
                               3.0 SI 4 DOOR             SEDAN
                               3.0 SI 4 DOOR AUTO        SEDAN
                               530I 4 DOOR               SEDAN
                               530I 4 DOOR AUTO          SEDAN
 
 

>>