Hi,
I’m running SAS 9.1.3 SP 4 on z/OS (IBM Model 2827).
My code is:
%let a=test@test.com;
%put &a;
But the output/log looks like this:
1
2
3 %let a=test@test.com;
4 %put &a;
testØtest.com
The @ sign is translated to Ø.
How can I avoid this?
Thank you Tom,
I just type it directly on the mainframe. (SAS interactive on mainframe)
But in the batch (when I save the code in a sasinc file in order to call it with JCL and run it), I can see that @ have ‘80’x as HEX.
Do you know any work around for this?
Thank you Tom.
We run with EBCDIC 1142.
proc options option=encoding; run;
gives:
SAS (r) Proprietary Software Release 9.1 TS1M3
ENCODING=EBCDIC1142
Default encoding for external data
And according to this page http://www.longpelaexpertise.com.au/toolsCode.php and as you say the HEX code for @ should be ‘80’x
but when I try
CALL SYMPUTX('A','test'||'80'x||'test.com');
I still get testØtest.com
‘7C’x gives the same testØtest.com ???!!!
I think I have to contact the people responsible for our SAS installation.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.