How do I vertically stack tables in SAS using ODS Excel?How to create Excel (.XLS and .XLSX) file in C# without installing Ms Office?How do I properly clean up Excel interop objects?Excel to CSV with UTF8 encodingHow to avoid using Select in Excel VBAText manipulation of macro list variables to stack datasets with automated namesExport Windows forms datagridview to excel power pivot table with C#Stack multiple cells of excel using ODS - SASExport excel spreadsheet to XML and sort array alphabetically during or after export?Combining forecasts into a data frame in R and then exporting into excelSAS DDE to Excel 2016 fix/ alternative?

Valid term from quadratic sequence?

Can I run a new neutral wire to repair a broken circuit?

Bullying boss launched a smear campaign and made me unemployable

Why can't we play rap on piano?

Arrow those variables!

Plagiarism or not?

Examples of smooth manifolds admitting inbetween one and a continuum of complex structures

How do I gain back my faith in my PhD degree?

Venezuelan girlfriend wants to travel the USA to be with me. What is the process?

How do I deal with an unproductive colleague in a small company?

Detention in 1997

Ambiguity in the definition of entropy

How dangerous is XSS?

Probability that a draw from a normal distribution is some number greater than another draw from the same distribution

How do I handle a potential work/personal life conflict as the manager of one of my friends?

Why doesn't using multiple commands with a || or && conditional work?

What's the in-universe reasoning behind sorcerers needing material components?

Can a virus destroy the BIOS of a modern computer?

Could the museum Saturn V's be refitted for one more flight?

Can compressed videos be decoded back to their uncompresed original format?

Expand and Contract

What do you call someone who asks many questions?

Madden-Julian Oscillation (MJO) - How to interpret the index?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?



How do I vertically stack tables in SAS using ODS Excel?


How to create Excel (.XLS and .XLSX) file in C# without installing Ms Office?How do I properly clean up Excel interop objects?Excel to CSV with UTF8 encodingHow to avoid using Select in Excel VBAText manipulation of macro list variables to stack datasets with automated namesExport Windows forms datagridview to excel power pivot table with C#Stack multiple cells of excel using ODS - SASExport excel spreadsheet to XML and sort array alphabetically during or after export?Combining forecasts into a data frame in R and then exporting into excelSAS DDE to Excel 2016 fix/ alternative?













-1















I'm exporting a series of crosstabs from SAS 9.3 to Excel using Excel ODS tagsets.



The syntax I've written is as follows:



%include 'C:UsersMyNameDocumentsexcltags.tpl';
ods tagsets.excelxp file = "M:Assess1718PARTIC_3-8.xml"

proc sort data = assess_elem;
by accommodations_ny participation_ny district;
run;

proc freq data = assess_elem
by accommodations_ny participation_ny district;
tables grade*proficiency / crosslist nocum nocol;
run;

ods tagsets.excelxp close;


The variables are:



  • accommodations_ny: alphanumeric, N/Y

  • participation_ny: alphanumeric, N/Y

  • district: alphanumeric, 103 district names

  • grade: numeric, 3-8

  • proficiency: numeric, 0/1

The syntax above creates a table like this for each of the 103 districts:



have 103 separate tables



What I would like to have is something more like:



want 1 stacked table










share|improve this question
























  • Are you images correct? They both look the same to me.

    – Reeza
    Mar 9 at 3:52











  • And SAS 9.3 is about 7 years old, if you have a valid license you're entitled to upgrades, I highly recommend it, since ODS EXCEL has a ton of more useful features than ODS TAGSETS.

    – Reeza
    Mar 9 at 3:57











  • Thanks! Revised! And yes, I'm supposed to get 9.4 very soon. I can't wait!

    – doctorjay
    Mar 13 at 16:23
















-1















I'm exporting a series of crosstabs from SAS 9.3 to Excel using Excel ODS tagsets.



The syntax I've written is as follows:



%include 'C:UsersMyNameDocumentsexcltags.tpl';
ods tagsets.excelxp file = "M:Assess1718PARTIC_3-8.xml"

proc sort data = assess_elem;
by accommodations_ny participation_ny district;
run;

proc freq data = assess_elem
by accommodations_ny participation_ny district;
tables grade*proficiency / crosslist nocum nocol;
run;

ods tagsets.excelxp close;


The variables are:



  • accommodations_ny: alphanumeric, N/Y

  • participation_ny: alphanumeric, N/Y

  • district: alphanumeric, 103 district names

  • grade: numeric, 3-8

  • proficiency: numeric, 0/1

The syntax above creates a table like this for each of the 103 districts:



have 103 separate tables



What I would like to have is something more like:



want 1 stacked table










share|improve this question
























  • Are you images correct? They both look the same to me.

    – Reeza
    Mar 9 at 3:52











  • And SAS 9.3 is about 7 years old, if you have a valid license you're entitled to upgrades, I highly recommend it, since ODS EXCEL has a ton of more useful features than ODS TAGSETS.

    – Reeza
    Mar 9 at 3:57











  • Thanks! Revised! And yes, I'm supposed to get 9.4 very soon. I can't wait!

    – doctorjay
    Mar 13 at 16:23














-1












-1








-1








I'm exporting a series of crosstabs from SAS 9.3 to Excel using Excel ODS tagsets.



The syntax I've written is as follows:



%include 'C:UsersMyNameDocumentsexcltags.tpl';
ods tagsets.excelxp file = "M:Assess1718PARTIC_3-8.xml"

proc sort data = assess_elem;
by accommodations_ny participation_ny district;
run;

proc freq data = assess_elem
by accommodations_ny participation_ny district;
tables grade*proficiency / crosslist nocum nocol;
run;

ods tagsets.excelxp close;


The variables are:



  • accommodations_ny: alphanumeric, N/Y

  • participation_ny: alphanumeric, N/Y

  • district: alphanumeric, 103 district names

  • grade: numeric, 3-8

  • proficiency: numeric, 0/1

The syntax above creates a table like this for each of the 103 districts:



have 103 separate tables



What I would like to have is something more like:



want 1 stacked table










share|improve this question
















I'm exporting a series of crosstabs from SAS 9.3 to Excel using Excel ODS tagsets.



The syntax I've written is as follows:



%include 'C:UsersMyNameDocumentsexcltags.tpl';
ods tagsets.excelxp file = "M:Assess1718PARTIC_3-8.xml"

proc sort data = assess_elem;
by accommodations_ny participation_ny district;
run;

proc freq data = assess_elem
by accommodations_ny participation_ny district;
tables grade*proficiency / crosslist nocum nocol;
run;

ods tagsets.excelxp close;


The variables are:



  • accommodations_ny: alphanumeric, N/Y

  • participation_ny: alphanumeric, N/Y

  • district: alphanumeric, 103 district names

  • grade: numeric, 3-8

  • proficiency: numeric, 0/1

The syntax above creates a table like this for each of the 103 districts:



have 103 separate tables



What I would like to have is something more like:



want 1 stacked table







excel sas crosstab ods






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 13 at 16:23







doctorjay

















asked Mar 8 at 22:18









doctorjaydoctorjay

14




14












  • Are you images correct? They both look the same to me.

    – Reeza
    Mar 9 at 3:52











  • And SAS 9.3 is about 7 years old, if you have a valid license you're entitled to upgrades, I highly recommend it, since ODS EXCEL has a ton of more useful features than ODS TAGSETS.

    – Reeza
    Mar 9 at 3:57











  • Thanks! Revised! And yes, I'm supposed to get 9.4 very soon. I can't wait!

    – doctorjay
    Mar 13 at 16:23


















  • Are you images correct? They both look the same to me.

    – Reeza
    Mar 9 at 3:52











  • And SAS 9.3 is about 7 years old, if you have a valid license you're entitled to upgrades, I highly recommend it, since ODS EXCEL has a ton of more useful features than ODS TAGSETS.

    – Reeza
    Mar 9 at 3:57











  • Thanks! Revised! And yes, I'm supposed to get 9.4 very soon. I can't wait!

    – doctorjay
    Mar 13 at 16:23

















Are you images correct? They both look the same to me.

– Reeza
Mar 9 at 3:52





Are you images correct? They both look the same to me.

– Reeza
Mar 9 at 3:52













And SAS 9.3 is about 7 years old, if you have a valid license you're entitled to upgrades, I highly recommend it, since ODS EXCEL has a ton of more useful features than ODS TAGSETS.

– Reeza
Mar 9 at 3:57





And SAS 9.3 is about 7 years old, if you have a valid license you're entitled to upgrades, I highly recommend it, since ODS EXCEL has a ton of more useful features than ODS TAGSETS.

– Reeza
Mar 9 at 3:57













Thanks! Revised! And yes, I'm supposed to get 9.4 very soon. I can't wait!

– doctorjay
Mar 13 at 16:23






Thanks! Revised! And yes, I'm supposed to get 9.4 very soon. I can't wait!

– doctorjay
Mar 13 at 16:23













2 Answers
2






active

oldest

votes


















1














Use tagset option OPTIONS(SHEET_INTERVAL="Proc").



ods tagsets.excelxp 
file=...
style=...
options(doc="all" sheet_interval="Proc") /* <--- your magic --- */
;


The DOC="ALL" options option will show the ExcelXP tagset documentation in the log.






share|improve this answer























  • Thanks! I wasn't aware of that option!

    – doctorjay
    Mar 13 at 16:24


















0














You are not limited to two way in the TABLE statement, especially if you use the LIST option instead of CROSSLIST.



Here's a quick example using SASHELP.CARS



proc freq data=sashelp.cars;
table origin*make*cylinders / list;
run;


It creates a table like this:



enter image description here



This will not give you the unrepeated columns on the left most, if you do want that, PROC TABULATE gives you more control over the output or push it to a table and use PROC REPORT.






share|improve this answer























  • Perfect! Thank you! That's exactly what I was looking for. Self-taught, coming from Stata, so I'm definitely still learning. Much appreciated!

    – doctorjay
    Mar 13 at 16:26











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071772%2fhow-do-i-vertically-stack-tables-in-sas-using-ods-excel%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Use tagset option OPTIONS(SHEET_INTERVAL="Proc").



ods tagsets.excelxp 
file=...
style=...
options(doc="all" sheet_interval="Proc") /* <--- your magic --- */
;


The DOC="ALL" options option will show the ExcelXP tagset documentation in the log.






share|improve this answer























  • Thanks! I wasn't aware of that option!

    – doctorjay
    Mar 13 at 16:24















1














Use tagset option OPTIONS(SHEET_INTERVAL="Proc").



ods tagsets.excelxp 
file=...
style=...
options(doc="all" sheet_interval="Proc") /* <--- your magic --- */
;


The DOC="ALL" options option will show the ExcelXP tagset documentation in the log.






share|improve this answer























  • Thanks! I wasn't aware of that option!

    – doctorjay
    Mar 13 at 16:24













1












1








1







Use tagset option OPTIONS(SHEET_INTERVAL="Proc").



ods tagsets.excelxp 
file=...
style=...
options(doc="all" sheet_interval="Proc") /* <--- your magic --- */
;


The DOC="ALL" options option will show the ExcelXP tagset documentation in the log.






share|improve this answer













Use tagset option OPTIONS(SHEET_INTERVAL="Proc").



ods tagsets.excelxp 
file=...
style=...
options(doc="all" sheet_interval="Proc") /* <--- your magic --- */
;


The DOC="ALL" options option will show the ExcelXP tagset documentation in the log.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 9 at 0:07









RichardRichard

9,84221329




9,84221329












  • Thanks! I wasn't aware of that option!

    – doctorjay
    Mar 13 at 16:24

















  • Thanks! I wasn't aware of that option!

    – doctorjay
    Mar 13 at 16:24
















Thanks! I wasn't aware of that option!

– doctorjay
Mar 13 at 16:24





Thanks! I wasn't aware of that option!

– doctorjay
Mar 13 at 16:24













0














You are not limited to two way in the TABLE statement, especially if you use the LIST option instead of CROSSLIST.



Here's a quick example using SASHELP.CARS



proc freq data=sashelp.cars;
table origin*make*cylinders / list;
run;


It creates a table like this:



enter image description here



This will not give you the unrepeated columns on the left most, if you do want that, PROC TABULATE gives you more control over the output or push it to a table and use PROC REPORT.






share|improve this answer























  • Perfect! Thank you! That's exactly what I was looking for. Self-taught, coming from Stata, so I'm definitely still learning. Much appreciated!

    – doctorjay
    Mar 13 at 16:26















0














You are not limited to two way in the TABLE statement, especially if you use the LIST option instead of CROSSLIST.



Here's a quick example using SASHELP.CARS



proc freq data=sashelp.cars;
table origin*make*cylinders / list;
run;


It creates a table like this:



enter image description here



This will not give you the unrepeated columns on the left most, if you do want that, PROC TABULATE gives you more control over the output or push it to a table and use PROC REPORT.






share|improve this answer























  • Perfect! Thank you! That's exactly what I was looking for. Self-taught, coming from Stata, so I'm definitely still learning. Much appreciated!

    – doctorjay
    Mar 13 at 16:26













0












0








0







You are not limited to two way in the TABLE statement, especially if you use the LIST option instead of CROSSLIST.



Here's a quick example using SASHELP.CARS



proc freq data=sashelp.cars;
table origin*make*cylinders / list;
run;


It creates a table like this:



enter image description here



This will not give you the unrepeated columns on the left most, if you do want that, PROC TABULATE gives you more control over the output or push it to a table and use PROC REPORT.






share|improve this answer













You are not limited to two way in the TABLE statement, especially if you use the LIST option instead of CROSSLIST.



Here's a quick example using SASHELP.CARS



proc freq data=sashelp.cars;
table origin*make*cylinders / list;
run;


It creates a table like this:



enter image description here



This will not give you the unrepeated columns on the left most, if you do want that, PROC TABULATE gives you more control over the output or push it to a table and use PROC REPORT.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 9 at 3:56









ReezaReeza

13.4k21227




13.4k21227












  • Perfect! Thank you! That's exactly what I was looking for. Self-taught, coming from Stata, so I'm definitely still learning. Much appreciated!

    – doctorjay
    Mar 13 at 16:26

















  • Perfect! Thank you! That's exactly what I was looking for. Self-taught, coming from Stata, so I'm definitely still learning. Much appreciated!

    – doctorjay
    Mar 13 at 16:26
















Perfect! Thank you! That's exactly what I was looking for. Self-taught, coming from Stata, so I'm definitely still learning. Much appreciated!

– doctorjay
Mar 13 at 16:26





Perfect! Thank you! That's exactly what I was looking for. Self-taught, coming from Stata, so I'm definitely still learning. Much appreciated!

– doctorjay
Mar 13 at 16:26

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071772%2fhow-do-i-vertically-stack-tables-in-sas-using-ods-excel%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page