본문 바로가기

자격증/SAS BASE

Chapter2. Basic Concepts

Q. How many program steps executed ~

  • SAS 는 DATA, PROC, RUN statement 를 만나면 statement 읽는 것을 멈추고 프로그램의 이전 step 을 실행한다.

 

Q. Numeric, Charcter 변수 구별 문제

  • letter 와 ubderscore(_) 를 포함하면 character variable

  •   Numeric Character
    결측값 . (Period) Blank
    정렬 오른쪽 왼쪽

 

Q. VALIDVARNAME=ANY system option 을 사용하였을 때, 가능한 변수의 이름 

  • 이름이 Characters 로 시작하거나, any Characters 포함가능                                                                                                   (blank, national character, special character, multi-byte character)
  • 이름 32 byte 까지 길이 허용
  • 이름 적어도 하나의 character, mixed - case letters 를 포함해야 한다.

 

Q. Numuric value defult length

  • Numeric values (no matter how many digits they contain) are stored in 8 byte of storage
  • 다른 길이를 지정하지 않는 한 8 byte 로 저장된다.

 

 

Q. statement 개수 파악하기

  • the PROC PRINT statement  (proc print data=cert.admit  label double;)
  • the VAR statement
  • the WHERE statement
  • the LABEL statement
  • the RUN statement

 

Q. SAS library 에 대하여

  • collection of SAS files such as SAS data sets and catalogs.
  • in some operating environments, a physical collection of SAS files (다시말해, the files are only logically related)
  • Window 와 UNIX 환경에서, a SAS library 는 같은 folder 혹은 같은 directory 에 있는 typically a group of SAS files   
  • (a group of SAS files in the same folder of directory)