全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1735 1
2018-09-21
sas在input 输入变量名时有+1这是啥意思
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2018-9-21 21:19:16
INPUT statement有三种控制指针的方式:
1 column pointer controls: reset the pointer's column position when the data values in the data records are read, such as @, +n
2 line pointer controls: reset the pointer's line position when the data values in the data records are read, such as #n, slash(/)
3 line-hold specifiers: hold an input record in the input buffer so that another INPUT statement can process it. By default, the INPUT statement releases the previous record and reads another record, such as @ & @@

Pointer Controls:
@n   go to column n
+n   move the pointer n positions
@    hold the current input line and re-read certain variables.
@@    useful when each input line contains values for several observations
/      skip to the next line of raw data
#n    stands for the number of the line of raw data for that observation
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群