December 16, 2008, 03:18 AM
Martin_fmiNope ...
December 16, 2008, 10:24 AM
PrarieSee if this produces any ideas -
hereDecember 16, 2008, 03:44 PM
WazUnless you do something wacky, I think your only option is the SIZE=1.
December 17, 2008, 03:47 PM
Mighty MaxHave you tried conditional subheads/subfoots?
TABLE FILE CAR
PRINT
COUNTRY
CAR
MODEL
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY MODEL NOPRINT
ON CAR SUBHEAD
"Subhead <COUNTRY"
WHEN (COUNTRY EQ 'ENGLAND') AND
(CAR EQ 'JENSEN');
ON CAR SUBFOOT
"Subfoot <COUNTRY"
WHEN (COUNTRY EQ 'ITALY') OR
(COUNTRY EQ 'FRANCE');
END
-EXIT
December 18, 2008, 03:45 AM
Martin_fmiExactly this causes the problem with spaces ... I've managed a workaround by multiplying the rows of the table by the number of subfoots and subheads treating them as column by somehow adjusting the corresponding positions which runs very slow though ...
December 18, 2008, 05:41 AM
<JG>If I read it correctly you only want heading subheads and subfoots
Here is a basic method as a starter
SET PAGE=NOLEAD
TABLE FILE CAR
"Heading"
SUM
COMPUTE DUMMY/A4='NULL'; AS ''
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY MODEL NOPRINT
ON CAR SUBHEAD
"Subhead <COUNTRY> "
WHEN (COUNTRY EQ 'ENGLAND') AND
(CAR EQ 'JENSEN');
ON CAR SUBFOOT
"Subfoot <COUNTRY> "
WHEN (COUNTRY EQ 'ITALY') OR
(COUNTRY EQ 'FRANCE');
ON TABLE HOLD AS WP FORMAT WP NOCC
END
-RUN
FILEDEF MAS DISK WP.MAS
-RUN
-WRITE MAS FILENAME=WP , SUFFIX=FIX , $
-WRITE MAS SEGMENT=WP, SEGTYPE=S0, $
-WRITE MAS FIELDNAME=f1, USAGE=A2, ACTUAL=A02, $
-WRITE MAS FIELDNAME=C1, USAGE=A8, ACTUAL=A08, $
-WRITE MAS FIELDNAME=C2, USAGE=A12, ACTUAL=A12, $
-WRITE MAS FIELDNAME=f2, USAGE=A1, ACTUAL=A56, $
TABLE FILE WP
PRINT C1
C2
WHERE C1 OMITS 'NULL'
ON TABLE HOLD FORMAT ALPHA
END
-RUN
TABLE FILE HOLD
PRINT C1 AS ''
C2 AS ''
ON TABLE PCHOLD FORMAT PDF
END
December 19, 2008, 03:16 AM
Martin_fmiI thought about format WP but I didn't know how to make it work - great many thanks ! Thanks all as well for the support.
December 19, 2008, 03:50 AM
<JG>Most important thing is that the master that you create has the correct total length of columns.
By default FORMAT WP is an LRECL of 80.
If you are having any problems then stick ?FILEDEF after the HOLD FORMAT WP and you will
see what LRECL you actually have.