BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
cnilsen
Quartz | Level 8

HI.

 

perhaps someone can help.  I have a large .sas program that generates an error at this particular part of the code when I run directly on our unix server, but when I run the same piece of code in EG, I have no issue and my output creates as expected.  So.. I'm assuming that this statement is interpreted differently as .egp.. and therefor I need to use some sort of unix syntax equivilant?

 

this is my code 

 

PROC SQL;
CREATE TABLE work.CustRespChanPlatALLGFGB AS
SELECT DISTINCT

compress(t1.Source_ID || put(t1.'WEB ORDER ID'n,best.)) as SrcAndWebNbr
,t1.'ORDER #'n as OrderNumber
,t1.'MASTER CHANNEL'n as MasterChannel
FROM
ADS.CUST_RESP_CHAN_PLAT_ALLGFGB t1
;
QUIT;

 

these are the errors I get:

 

ERROR: Column WEB ORDER ID could not be found in the table/view identified with the correlation name T1.
ERROR: Column ORDER # could not be found in the table/view identified with the correlation name T1.
ERROR: Column MASTER CHANNEL could not be found in the table/view identified with the correlation name T1.
ERROR: Numeric format BEST in PUT function requires a numeric argument.

 

 

I have attached the source table specs so that you can see what the input table contains.

 

 

Any help or advice would be truly appreciated.

 

- Chris N.
1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
r_behata
Barite | Level 11

Try 

 

OPTIONS VALIDVARNAME=ANY;
cnilsen
Quartz | Level 8
That worked out.. Thanks so much!
- Chris N.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1112 views
  • 3 likes
  • 2 in conversation