I need some help troubleshooting this error. Am I doing something wrong here? 4621 proc sql;
4622 create table QueryData&ZIP5 as
SYMBOLGEN: Macro variable ZIP5 resolves to 00926
4623 select *,
4624 "A" as source,
4625 "-" as RuleFlag,
4626 "-" as rule_nm length = 58,
4627 a.actual_dlvry_date as ad_dt,
4628 a.imb_code length = 31,
4629 "-" as rule_order,
4630 a.imb_dlvry_zip_5
4631 from ods_iv_recon_selected_mp as a
4632 where imb_dlvry_zip_5=&ZIP5_QUOTED
SYMBOLGEN: Macro variable ZIP5_QUOTED resolves to '00926'
4633 union all corresponding
4634 select *,
4635 "B" as source,
4636 "-" as RuleFlag,
4637 "-" as rule_nm length = 58,
4638 b.actual_dlvry_date as ad_dt,
4639 b.imb_code length = 31,
4640 "-" as rule_order,
4641 b.imb_dlvry_zip_5
4642 from ods_bi_recon_selected_mp as b
4643 where imb_dlvry_zip_5=&ZIP5_QUOTED;
SYMBOLGEN: Macro variable ZIP5_QUOTED resolves to '00926'
ERROR: Duplicate column names have been detected in the above query which requested that CORRESPONDING column names be
matched. This situation is ambiguous.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.
4644 quit;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SQL used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
... View more