Search results with tag "Do loops"
158-2010: How to Use Arrays and DO Loops: Do I DO OVER …
support.sas.comARRAYs and DO loops are powerful data manipulation tools that help make code more efficient. In this workshop you will learn when ARRAYs and DO loops can and should be used, how to set up an ARRAY with and without specifying the number of array elements,
158-2010: How to Use Arrays and DO Loops: Do I DO OVER …
support.sas.comOne way is to use SAS ARRAYs and DO loops. SAS ARRAYS A SAS ARRAY is a set of variables of the same type that you want to perform the same operation on. The set of variables is then referenced in the DATA step by the array name. The variables in …
113-2011: %DO Loop: A Simple Dynamic Programming …
support.sas.comDO loops can not be used here since the LABEL statement is a declarative statement. But you can use the %DO loop in a macro like the following …
031-2008: PROC REPORT: Compute Block Basics -- Part I ...
support.sas.comThese include DO loops, assignment and sum statements, ARRAYs, and IF-THEN/ELSE processing. Most of the functions and routines that do not work in the compute block are those that utilize either the DATA step’s Program Data Vector, PDV, or the processing of the DATA step itself. Examples include the LAG function and the
113-2011: %DO Loop: A Simple Dynamic Programming …
support.sas.comdo not have a common prefix, we can not list them as COL1_LINE1 – COL50_LINE1 in the VAR statement. We are facing two options: list these variables one by one in the VAR statement or write a few lines of code to dynamically generate the list of these variables. For a repetition of so many items, the following code is a better