Prem Lakshman Posted May 19, 2022 Share Posted May 19, 2022 Sample fex: TABLE FILE CAR PRINT CAR FOR COUNTRY 'FRANCE' FOOTING BOTTOM "ITALY" ON TABLE SUBFOOT "ENGLAND" ON TABLE PCHOLD FORMAT HTML END Link to comment Share on other sites More sharing options...
Walter Brengel Posted May 19, 2022 Share Posted May 19, 2022 Hi Prem, Assuming the image is showing what you want to see, this code will do it: DEFINE FILE CAR ACRPOS/I3 WITH CAR=IF COUNTRY EQ LAST COUNTRY THEN ACRPOS + 1 ELSE 1; END TABLE FILE CAR SUM CAR BY COUNTRY ACROSS ACRPOS NOPRINT END It will create a position field (ACRPOS) that is used to go ACROSS the page and gets reset back to 1 (the first column) when the COUNTRY value changes. Walter Link to comment Share on other sites More sharing options...
Prem Lakshman Posted May 21, 2022 Author Share Posted May 21, 2022 Hi Walter, Great thank you, Thanks, Prem Lakshman Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now