The DO Loop
Statistical programming in SAS with an emphasis on SAS/IML programs![Calling Base SAS Functions from SAS/IML Programs](https://blogs.sas.com/content/iml/files/2011/07/t_basesas1.png)
"How do I apply a format to a vector of values in IML? In the DATA step, I can just call the PUTN function.” This question came from a SAS customer that I met recently at a conference. My reply? Use the PUTN function, but send it a vector of
![Filling an Upper Triangular Matrix from a Vector](https://blogs.sas.com/content/iml/files/2017/02/AdvancedAnalytics-3.png)
The R You Ready blog posed an interesting problem. Essentially, you have a vector that contains n(n+1)/2 elements, and you want to pack those elements into the upper left triangular portion of a matrix. For example, if your data are proc iml; /** vector v is given: ncol(v) = n(n+1)/2 for
![Hello, World!](https://blogs.sas.com/content/iml/files/2011/07/t_helloworld.png)
When programmers begin learning a new computer language, the first program they write is often one that prints the text “Hello, World!” Successfully writing a Hello World program assures the programmer that the software is successfully installed and that all necessary features are working: parsers, compilers, linkers, and so on.