Proc format SAS yog dab tsi?
Proc format SAS yog dab tsi?

Video: Proc format SAS yog dab tsi?

Video: Proc format SAS yog dab tsi?
Video: PROC Format in SAS|Creating, Storing & Retieving Formats created by PROC FORMAT for further uses 2024, Kaum ib hlis
Anonim

PROC FORMAT yog ib txoj kev uas tsim ib daim ntawv qhia ntawm cov ntaub ntawv muaj nuj nqis rau hauv cov ntaub ntawv sau npe. Tus neeg siv tau txhais FORMAT mapping yog ywj siab ntawm a SAS DATASET thiab qhov sib txawv thiab yuav tsum tau qhia meej meej hauv DATASTEP tom ntej thiab / lossis PROC.

Raws li txoj cai, SAS hom ntawv yog dab tsi?

A hom ntawv yog ib qho kev qhia tshwj xeeb rau yuav ua li cas tus hloov pauv yuav tsum tau luam tawm lossis tso tawm. SAS muaj ntau yam sab hauv hom ntawv thiab cov ntaub ntawv, los yog cov neeg siv txhais hom ntawv thiab cov ntaub ntawv tuaj yeem tsim tau siv PROC FORMAT . Xav tias peb tsim ib SAS cov ntaub ntawv teev nyob rau hauv cov ntaub ntawv kauj ruam, thiab suav nrog cov kab hauv qab no hauv cov ntaub ntawv kauj ruam.

Kuv yuav hloov daim ntawv lo hauv SAS li cas? MODIFY SAS - cov ntaub ntawv-set; LABEL sib txawv <' daim ntawv lo.

Thaum koj siv LABEL nqe lus, ua raws li cov cai no:

  1. Muab cov ntawv ntawm daim ntawv lo rau hauv ib qho lossis ob lub ntsiab lus.
  2. Txwv daim ntawv lo kom tsis pub ntau tshaj 256 tus cim, suav nrog qhov khoob.
  3. Txhawm rau tshem tawm daim ntawv lo, siv qhov khoob raws li cov ntawv ntawm daim ntawv lo, uas yog, hloov pauv = ' '.

Tib neeg kuj nug, Kuv yuav hloov hom ntawv hauv SAS li cas?

Los yog qhib kab saib ntawm cov ntaub ntawv teev nyob rau hauv lub SAS explorer nyem rau ntawm lub npe sib txawv thiab hloov kho hom ntawv . Los yog qhib lub rooj saib ntawm cov ntaub ntawv teeb tsa hauv hom hloov kho, nyem rau ntawm kab ntawv kab lus coj mus rau lub thawv khoom sib txawv thiab hloov tus hom ntawv.

Tus lej kos npe txhais li cas hauv SAS?

Cov ntaub ntawv cim A dollar kos npe ($) ua raws lub npe sib txawv hauv daim ntawv qhia INPUT. Cov ntaub ntawv cim yog siv. Qhov sib txawv tau txhais yav dhau los ua tus cwj pwm: piv txwv li, hauv LENGTH nqe lus, hauv RETAIN nqe lus, los ntawm daim ntawv qhia ua haujlwm, lossis hauv kev qhia.

Pom zoo: