博文

目前显示的是 十一月, 2023的博文

sas note1

SAS programs are constructed from two basic building blocks: 1.DATA Steps (starts with data keyword) 2.PROC Steps (starts with proc keyword) DATA and PROC steps are made up of statements. A step  may have as few as one or as many as hundreds of  statements.  We normally use data step for importing a dataset or creating a new dataset, or getting a subset of data set, or manipulating a dataset and we use proc step to print, summerize , or visualize data note: Sas is case sensitive only for values inside its data but for keywords and identifires( name of variables, name of tables, ...) is not case sensitive note: you have to put semicolon at the end of each statementl  for execution: highlight the block of code that has to have run keyword at the end  then select running person icon or F3 or run tab>submit  Note: after any execution you must check the log even if you get the result Data test1test1 is the name of table(dataset) that will be saved in work lib...

sas basics

  *For addig line numbers: select Program Editor window then go to Tools tab --> Option --> Enhanced Editor. In General tab check Show line numbers in its check box.; *================================== Two methods for writing comments: ===================================; *your comment; /*your comment */ *================================== Two basic building blocks: =================================== • SAS programs are constructed from two basic building blocks: 1.DATA Steps (starts with data keyword) 2.PROC Steps (starts with proc keyword) • DATA and PROC steps are made up of statements. A step  may have as few as one or as many as hundreds of  statements.  We normally use data step for importing a dataset or creating a new dataset, or getting a subset of data set, or manipulating a dataset and we use proc step to print, summerize , or visualize data; *note: Sas is case sensitive only for values inside its data but for keywords and identifires( name of varia...