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

Dear experts:

 

I have this issue, I need to export 13 tables in 9 sheets, trying to use this code:

ods excel file="\\mxnpr1fs0003.glb.bns.mx\mxcpr1condhb1\tmp\SUGEF_asiento_psc.xlsx"

options(sheet_name="Valida_saldos_Gio" frozen_headers='1' sheet_interval="now");
proc print data=work.a1_tabla4_valida;
run;

ods excel options(sheet_name="Ajustes_Tab_1" frozen_headers='1' sheet_interval="now");
proc print data=work.ajustes_manuales_1;
run;

ods excel options(sheet_name="Resumen_Tab_1" frozen_headers='1' sheet_interval="now");
proc print data=work.a1_resumen1;
run;

ods excel options(sheet_name="Tabla_1_EDL" frozen_headers='1' sheet_interval="none");
proc print data=work.a1_total1;
run;

proc print data=work.a1_total;
run;

ods excel options(sheet_interval="now");

ods excel options(sheet_name="Tabla_2_Sugef" frozen_headers='1' sheet_interval="none");
proc print data=work.a2_total1;
run;

proc print data=work.a2_total;
run;

ods excel options(sheet_name="Ajustes_Tab_2" frozen_headers='1' sheet_interval="now");
proc print data=work.ajustes_manuales_2;
run;

ods excel options(sheet_name="Validacion_SUGEF" frozen_headers='1' sheet_interval="now");
proc print data=work.a2_valida_final;
run;

ods excel options(sheet_name="Asiento_1" frozen_headers='1' sheet_interval="none");
proc print data=work.asiento_1_final;
run;

proc print data=work.valida_asiento_1;
run;

ods excel options(sheet_name="Asiento_2" frozen_headers='1' sheet_interval="none");
proc print data=work.asiento_2_final;
run;

proc print data=work.valida_asiento_2;
run;

ods excel close;

but some tables are in the same tables so I'm not sure where's the issue.

 

Thanks in advance for all your advise.

 

Fer

1 ACCEPTED SOLUTION

Accepted Solutions
Oligolas
Barite | Level 11

Hi,

 

I guess this answers your question

________________________

- Cheers -

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

@japfvg wrote:

 

... but some tables are in the same tables so I'm not sure where's the issue.


Please explain this further, and show us a screen capture(s) of what the problem is (use the "Insert Photos" icon to include screen captures, do not attach files).

--
Paige Miller
Oligolas
Barite | Level 11

Hi,

 

I guess this answers your question

________________________

- Cheers -

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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