Thank you for your reply. I forgot I changed device value to pdfc (on the code was pdf). About printer path, is selecting sysprint value (Microsoft XPS Document Writer). I am running on Enterprise Guide on a local machine, and here is the custom style : proc template;
define style Styles.Ceprepuc;
parent = styles.default;
class fonts /
'SASTitleFont' = ("Arial, Helvetica, Helv",12,Bold)
'TitleFont2' = ("Arial, Helvetica, Helv",12,Bold)
'TitleFont' = ("Arial, Helvetica, Helv",12,Bold)
'StrongFont' = ("Arial, Helvetica, Helv",2,Bold)
'EmphasisFont' = ("Arial, Helvetica, Helv",2)
'FixedEmphasisFont' = ("Arial, Courier",2)
'FixedStrongFont' = ("Arial, Courier",2,Bold)
'FixedHeadingFont' = ("Arial, Courier",2,Bold)
'FixedFont' = ("Arial, Courier",2)
'headingEmphasisFont' = ("Arial, Helvetica, Helv",2,Bold)
'headingFont' = ("Arial",8pt,Bold) /*Cabecera de columnas*/
'docFont' = ("Arial, Helvetica, Helv",1)
'footFont' = ("Arial", 8pt);
class color_list /
'fgB2' = cx000000
'fgB1' = cx483320
'fgB' = cx000000
'bgB' = white
'fgA5' = cxFFFF77
'bgA5' = white
'fgA4' = cxFFFF77
'bgA4' = cx808080
'fgA3' = cxFFFFFF
'bgA3' = white
'fgA2' = cxA80000
'bgA2' = white
'bgA1' = white
'fgA' = cx000000
'bgA' = white;
class colors /
'headerfgemph' = color_list('fgA')
'headerbgemph' = color_list('bgA')
'datafgemph' = color_list('fgA2')
'databgemph' = color_list('bgA1')
'headerfgstrong' = color_list('fgA')
'headerbgstrong' = color_list('bgA')
'datafgstrong' = color_list('fgA2')
'databgstrong' = color_list('bgA1')
'datafg' = color_list('fgA')
'databg' = color_list('bgA1')
'headerfg' = color_list('fgA')
'headerbg' = color_list('bgB')
'batchfg' = color_list('fgA')
'batchbg' = color_list('bgA1')
'tableborder' = color_list('fgA')
'tablebg' = color_list('bgA1')
'notefg' = color_list('fgA')
'notebg' = color_list('bgA')
'bylinefg' = color_list('fgA')
'bylinebg' = color_list('bgA1')
'captionfg' = color_list('fgA')
'captionbg' = color_list('bgA')
'proctitlefg' = color_list('fgA')
'proctitlebg' = color_list('bgA')
'titlefg' = color_list('fgA')
'titlebg' = color_list('bgA')
'systitlefg' = color_list('fgA')
'systitlebg' = color_list('bgA')
'Conentryfg' = color_list('fgB')
'Confolderfg' = color_list('fgB')
'Contitlefg' = color_list('fgB')
'link2' = color_list('fgB2')
'link1' = color_list('fgB1')
'contentfg' = color_list('fgB')
'contentbg' = color_list('bgB')
'docfg' = color_list('fgA')
'docbg' = color_list('bgA');
style Table from Table /
rules = all
frame = Box
cellspacing = 0
cellpadding = 5;
style Byline from Byline /
bordercolordark = color_list('bgA1')
bordercolorlight = color_list('fgA');
/*Títulos*/
style systemtitle from systemtitle/
font_face="Arial"
font_size=10pt;
/*Pie de página*/
style systemfooter from systemfooter/
font_face="Arial"
font_size=8pt;
/*Para textos en gráficos*/
class GraphFonts "replace fonts used in graph" /
'GraphDataFont' = ("Arial",8pt)
'GraphValueFont' = ("Arial",8pt)
'GraphLabelFont' = ("Arial",8pt,Bold)
'GraphFootnoteFont' = ("Arial",8pt,Bold)
'GraphTitleFont' = ("Arial",8pt);
class Data from Cell /
bordercolordark = color_list('bgA1')
bordercolorlight = color_list('bgB')
foreground = colors('datafg')
background = colors('databg');
class Header from HeadersAndFooters /
bordercolordark = color_list('bgA1')
bordercolorlight = color_list('fgA')
;
class Body from Document
"Margenes de páginas" /
bottommargin = 1 cm
topmargin = 1 cm
rightmargin = 1 cm
leftmargin = 1 cm;
end;
run; The log shows this, three times, because I'm outputting three reports with the same content. About 😧\Users\jklau\AppData\Local\Temp\SEG7392\SAS Temporary Files\_TD6556_C061561_\Prc2\univar27.png., the graph is storing with the name univar27.png on that route, there are more images on that directory, dont know why. Those macros references are for the pdf file path, that gets the output correctly, I dont use any macro variable for the histogram section, except one to filter values on the where condition. WARNING: With BARWIDTH= or INTERBAR= specified, the total area of the histogram bars will not
equal the area under a fitted curve.
WARNING: With BARWIDTH= or INTERBAR= specified, the total area of the histogram bars will not
equal the area under a fitted curve.
WARNING: With BARWIDTH= or INTERBAR= specified, the total area of the histogram bars will not
equal the area under a fitted curve.
NOTE: 10816 bytes written to
D:\Users\jklau\AppData\Local\Temp\SEG7392\SAS Temporary
Files\_TD6556_C061561_\Prc2\univa102.png.
ERROR: Unable to set printer path per request.
This is usually because the requested printer () is unknown.
ERROR: Denegado el acceso para abrir el fichero: PS#I0000
ERROR: Insufficient authorization to access C:\Windows\system32\sasprt.ps.
ERROR: Physical file does not exist, D:\Users\jklau\AppData\Local\Temp\SEG7392\SAS Temporary
Files\_TD6556_C061561_\#LN07544.
ERROR: Unable to load image FILEREF:PS#I0000; default image will be used instead.
NOTE: PROCEDIMIENTO UNIVARIATE used (Total process time):
real time 0.40 seconds
cpu time 0.29 seconds
MPRINT(PRINCIPAL): ;
MPRINT(PRINCIPAL): ods layout end;
SYMBOLGEN: La macro variable TXTTIPOTEMA se resuelve en LC
MPRINT(FRECUENCIASPTAJESBRUTOS): ods pdf startpage=now;
MPRINT(FRECUENCIASPTAJESBRUTOS): ods printer startpage=now;
MPRINT(CABECERA): title2 j=l "PONTIFICIA UNIVERSIDAD CATÓLICA DEL PERÚ";
MPRINT(CABECERA): title3 j=l "CENTRO PRE-UNIVERSITARIO";
SYMBOLGEN: La macro variable TXTANO se resuelve en 2016
SYMBOLGEN: La macro variable TXTCICLO se resuelve en 2
SYMBOLGEN: La macro variable TXTTIPOPR se resuelve en PR
SYMBOLGEN: La macro variable TXTNUMEVAL se resuelve en 2
MPRINT(CABECERA): title4 j=l "PROCESO: 2016-2 EVAL.: PR-2";
MPRINT(FRECUENCIASPTAJESBRUTOS): ;
MPRINT(FRECUENCIASPTAJESBRUTOS): title7 j=c 'Tabla de frecuencia PUNTAJE BRUTO';
SYMBOLGEN: La macro variable FDATE se resuelve en 07/22/19
MPRINT(PIE_PDF): footnote1 J=L "Fecha: 07/22/19";
MPRINT(PIE_PDF): footnote2 j=l "Página:^{thispage}";
MPRINT(FRECUENCIASPTAJESBRUTOS): ;
... View more