See the discussion of the FORMAT procedure in the Base SAS Procedures Guide, and the discussions for the FORMAT statement and SAS formats in SAS Statements: Reference. NOTE: The data set must be sorted by the classification variables in the order in which they are given in the CLASS ...
But I think you would have had a more sustainable learning experience if you had scrutinized your code and the resulting dataset yourself. Essentially, this DATA step uses only two different statements (in addition to the DATA statement): the iterative DO and the OUTPUT statement. So, it's ...
Ideally, when you add the IF/THEN statements that @PaigeMiller suggested, you'll place them after the SET statement. There's no need to place them inside a DO loop where they execute 10 times instead of once. 0 Likes RickyS Quartz | Level 8 Re: Data input Array with nested do lo...
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting...
[CrossRef] Disclaimer/Publisher's Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or ...