SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 852|回复: 3
打印 上一主题 下一主题

how to avoid dulpicated entry?

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2004-12-15 10:29:31 | 只看该作者

how to avoid dulpicated entry?

[color=red:639a6][size=200:639a6]i got a dataset and a text entry, the text entry is used to add new record, but before the insertion get excuted,i want first check if the new enry is already existed in that dataset. if it is, stop,oherwise, do proc insert. my code is listed below, but somehow. the first option has never get excuted. could someone tell me which part went wrong?thank you   [/size:639a6][/color:639a6]
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2004-12-15 12:01:51 | 只看该作者

显然的PROC SQL中的UNION

显然的PROC SQL中的UNION

另外你的程序好象忘贴了
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2004-12-15 12:36:17 | 只看该作者

can u show me a example,bro?

[color=red:ec2d2]heihei, don't know which doc is related to the union, thanks[/color:ec2d2]
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
地板
 楼主| 发表于 2004-12-16 05:00:23 | 只看该作者

reset dataset problem

after using union, it works,thanks. but when i reset(refresh/update) the Variable Value List of a combobox which is linked to this unioned dataset, it gives error messege, and say the programe halt.

submit continue;                                                                                              data Prog.ServiceID;                                                                                                                                                                                                                                   
            set uni;                                                                                                                                                                                                                                            
         run;                                                                                                                                                                                                                                                   
      endsubmit;                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                               
      DataSet_ServiceID.table='Prog.ServiceID';                                                                                                                                                                                                                 
      refresh;                                                                                                                                                                                                                                                  
      VarValueList_ServiceID.dataset  ='Prog.ServiceID';                                                                                                                                                                                                        
      VarValueList_ServiceID.variable ='SERVICEID';
  


ERROR: The value specified for the dataSet attribute is not valid. Specify another value.
Parameters passed to method _SETATTRIBUTEVALUE:
  1 (Character Literal) = 'dataset'
  2 (Character Literal) = 'Prog.ServiceID'
Program returning prematurely at line 488
AF Program: PROG.MRP.MAIN.FRAME


i found the sas/af language is fu***** idiot~~~~~~~~~~~~
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-6-8 19:47 , Processed in 0.076344 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表