楼主: fengzifz
9578 13

[问答] SAS BASE 123题中的第109题怎么做? [推广有奖]

11
Claire92 发表于 2017-3-30 09:16:54 |只看作者 |坛友微信交流群
weiguangju 发表于 2016-4-20 12:14
从开始的 ----|----|数一下,四个- 一个|, 到数字时7-8个位置对应2位数字
感谢感谢

使用道具

12
Claire92 发表于 2017-3-30 09:16:58 |只看作者 |坛友微信交流群
weiguangju 发表于 2016-4-20 12:14
从开始的 ----|----|数一下,四个- 一个|, 到数字时7-8个位置对应2位数字
感谢感谢

使用道具

13
yuan_wang 发表于 2018-7-12 13:27:39 |只看作者 |坛友微信交流群
Since there is no line holder used in first input statement therefore after reading ‘Sue’ as employee_name the pointer will move to next record to read and process input age 7-8 statement.

使用道具

14
yuan_wang 发表于 2018-7-12 14:17:14 |只看作者 |坛友微信交流群
/* SAS Base 123 */
/* Question 109 */


data test;
    input employee_name $ 1-4;
    if employee_name='Sue' then input age 7-8;
    else input idnum 10-11;
    put age=;
cards;
Ruth  39 11
Jose  32 22
Sue   30 33
John  40 44
;
run;

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-20 06:08