it possible to only get 1 title line ODS Excel in sas 9.4 , i only want the line with ??? ( should also be blank ) and the the line 2 should contain all my headers , and also how do i deside what the color should be in the sheet text.
This code is running on zos and the excel file is send to a server.
??? | |||||||||||||||||||||||||||||
Avgivende selskap | Organisasjonsnr. avgivende selskap |
Avtale-/selskapsnavn | Organisasjonsnr. bedrift |
Avtalenr. (kontraktsnr.) |
Flyttedato | Medlemskap - (laveste) alder |
Medlemskap - stillingsprosent |
Innskudd 0-1G |
Innskudd 1-12G |
Innskudd 7,1-12G |
Egenandel for medlem, innskudd |
Garantert Regulering av innskuddsfritak |
Regulering av pensjoner |
Uførepensjon 0-12G |
Uførepensjon 6-12G |
Uførepensjon av G |
Opphørsalder Uførepensjon |
Kompenseres det for manglende folketrygd (NAV) |
Barnetillegg til uførepensjon |
Ektefellepensjon av lønn |
Opphørsalder Ektefellepensjon |
Samboerpensjon | Barnepensjon av lønn |
Opphørsalder Barnepensjon |
Dobbel Barnepensjon |
Tjenestetid fra Ansattdato |
Tjenestetid fra Innmeldtdato |
Tjenestetid fra Fradato |
G som er benyttet for beregning av dekninger |
erfeefk 1 Forsikring AS | 1234567878 | ksgsgpwrgprw | 123243434 | 2133 | 01.12.2018 | 20 | 20,00 | 5,00 | 3,00 | O | 3,00 | 66,00 | 25,00 | 67 | N | 4,00 | 67 | N | N | N | N | 01.09.2011 | 96.883,00 | ||||||
these are my options;
options nocenter;
ods _all_ close;
ods excel file='/u/fdcopa/temp.xlsx' style=HTMLBLue
options(embed_titles_once = 'on'
embedded_titles='yes'
suppress_bylines='yes'
frozen_headers='3'
orientation='landscape'
fittopage='yes'
formulas='NO'
Pages_FitWidth = '1'
Pages_FitHeight = '100'
print_header='&C&A&RPage &P of &N'
BLACKANDWHITE='ON'
zoom='80');
and these is my print
ods excel options(sheet_name="&outnamet"
tab_color='black');
title;
Proc print data=&outname SPLIT='\' noobs
style(header)={just=l};
%include dynform;
%include dynlabel;
run;
it possible to only get 1 title line ODS Excel in sas 9.4 , i only want the line with ??? ( should also be blank ) and the line 2 should contain all my headers, and also how do i deside what the color should be in the sheet text.
This code is running on zos and the excel file is send to a server.
??? |
|||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Avgivende selskap |
Organisasjonsnr. |
Avtale-/selskapsnavn |
Organisasjonsnr. |
Avtalenr. |
Flyttedato |
Medlemskap |
Medlemskap - |
Innskudd |
Innskudd |
Innskudd |
Egenandel |
Garantert |
Regulering |
Uførepensjon |
Uførepensjon |
Uførepensjon |
Opphørsalder |
Kompenseres |
Barnetillegg |
Ektefellepensjon |
Opphørsalder |
Samboerpensjon |
Barnepensjon |
Opphørsalder |
Dobbel |
Tjenestetid |
Tjenestetid |
Tjenestetid |
G som er |
erfeefk 1 Forsikring AS |
1234567878 |
ksgsgpwrgprw |
123243434 |
2133 |
01.12.2018 |
20 |
20,00 |
|
5,00 |
|
|
3,00 |
O |
3,00 |
66,00 |
25,00 |
67 |
N |
4,00 |
|
67 |
N |
|
|
N |
N |
N |
01.09.2011 |
96.883,00 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
these are my options;
options nocenter;
ods _all_ close;
ods excel file='/u/fdcopa/temp.xlsx' style=HTMLBLue
options(embed_titles_once = 'on'
embedded_titles='yes'
suppress_bylines='yes'
frozen_headers='3'
orientation='landscape'
fittopage='yes'
formulas='NO'
Pages_FitWidth = '1'
Pages_FitHeight = '100'
print_header='&C&A&RPage &P of &N'
BLACKANDWHITE='ON'
zoom='80');
and these is my print
ods excel options(sheet_name="&outnamet"
tab_color='black');
title;
Proc print data=&outname SPLIT='\' noobs
style(header)={just=l};
%include dynform;
%include dynlabel;
run;
Can you not just do:
title1 " "; title2 "your header"; ...
To be honest, titles in Excel documents make no sense, and even more so embedding titles in the sheet, as then the sheet is pretty much useless.
as you can see in options options(embed_titles_once = 'on'
embedded_titles='yes' ** when embedded titles is on is always get 2 header lines , if i set this to NO i get 0 header lines and this i no matter what i put in title:
But i found i way arround it , i use now these options
embedded_titles='NO'
start_at='1,2'
the start_at is doing the tricks, i also dont now why to customer would like 1 space ahead of the labels, they say they are reading the file into a system and are depending on a blank in the first line.
it possible to only get 1 title line ODS Excel in sas 9.4 , i only want the line with ??? ( should also be blank ) and the line 2 should contain all my headers, and also how do i deside what the color should be in the sheet text.
This code is running on zos and the excel file is send to a server.
??? |
|||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Avgivende selskap |
Organisasjonsnr. |
Avtale-/selskapsnavn |
Organisasjonsnr. |
Avtalenr. |
Flyttedato |
Medlemskap |
Medlemskap - |
Innskudd |
Innskudd |
Innskudd |
Egenandel |
Garantert |
Regulering |
Uførepensjon |
Uførepensjon |
Uførepensjon |
Opphørsalder |
Kompenseres |
Barnetillegg |
Ektefellepensjon |
Opphørsalder |
Samboerpensjon |
Barnepensjon |
Opphørsalder |
Dobbel |
Tjenestetid |
Tjenestetid |
Tjenestetid |
G som er |
erfeefk 1 Forsikring AS |
1234567878 |
ksgsgpwrgprw |
123243434 |
2133 |
01.12.2018 |
20 |
20,00 |
|
5,00 |
|
|
3,00 |
O |
3,00 |
66,00 |
25,00 |
67 |
N |
4,00 |
|
67 |
N |
|
|
N |
N |
N |
01.09.2011 |
96.883,00 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
these are my options;
options nocenter;
ods _all_ close;
ods excel file='/u/fdcopa/temp.xlsx' style=HTMLBLue
options(embed_titles_once = 'on'
embedded_titles='yes'
suppress_bylines='yes'
frozen_headers='3'
orientation='landscape'
fittopage='yes'
formulas='NO'
Pages_FitWidth = '1'
Pages_FitHeight = '100'
print_header='&C&A&RPage &P of &N'
BLACKANDWHITE='ON'
zoom='80');
and these is my print
ods excel options(sheet_name="&outnamet"
tab_color='black');
title;
Proc print data=&outname SPLIT='\' noobs
style(header)={just=l};
%include dynform;
%include dynlabel;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.