BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fdcbkn
Obsidian | Level 7

 

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;

1 ACCEPTED SOLUTION

Accepted Solutions
fdcbkn
Obsidian | Level 7

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.
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;

 

View solution in original post

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

fdcbkn
Obsidian | Level 7

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.

           

fdcbkn
Obsidian | Level 7

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.
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;

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 3 replies
  • 2189 views
  • 1 like
  • 2 in conversation