1.concatenating operator:
eg: data1= 'FA';
data2='1';
data3=data1|| data2;
run;
the value of data3 is FA only.why?
2.As we known, ddmmyy8. or ddmmyy10. are common to use.
Can you write yymmdd10. if the raw data is given 1960/01/01?
Thank you guys.

|
楼主: qt600
|
3471
9
[求助] Two Base SAS test points |
|
已卖:2704份资源 本科生 83%
-
|
回帖推荐Q1: you have made the questions different between the first time and the second.
first you have 3 variables, second time you have two variables.
using proc contents to check what happened to your data.if you change
jobCategory= JobCategory || JobLevel; to job= JobCategory || JobLevel, then using proc contents, you will find out the job is defined for 3 chars long.
Q3( if question): ...
Q1: I get data3=FA1. i don't know what had happen to you.
Q2: yes, you can.you can read data into sas by using informat. when you want to print, you can use any data format to display.
Q3: form my understanding, the whole obs will be missing from the output data set.
Q4:
data work.passengers;
if OrigPassengers = . then OrigPassengers=100; % here OrigPassengers=100
TransPassengers= 100; ...
本帖被以下文库推荐
| ||
|
|
| ||
| ||
| ||
| ||
| ||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


