BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Abdulhamid
Fluorite | Level 6

Hi every one ,How can I in SQL format the Amount Variables to get the Results in Euro Currency with the Thousands Groups in the Number the result should look like 123.456.789,12 €

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @Abdulhamid,

 

Try the NLMNLEURw. format:

proc sql;
create table test (amount1 num, amount2 num);
insert into test values (123456789.12, -987654321.09);
select amount1 format=nlmnleur21.,
       amount2 format=nlmnleur21.
from test;
quit;

(But note the LOCALE dependency mentioned in the documentation.)

View solution in original post

4 REPLIES 4
FreelanceReinh
Jade | Level 19

Hi @Abdulhamid,

 

Try the NLMNLEURw. format:

proc sql;
create table test (amount1 num, amount2 num);
insert into test values (123456789.12, -987654321.09);
select amount1 format=nlmnleur21.,
       amount2 format=nlmnleur21.
from test;
quit;

(But note the LOCALE dependency mentioned in the documentation.)

Abdulhamid
Fluorite | Level 6
Thanks a lot!
Abdulhamid
Fluorite | Level 6
Thank You very munch!

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 4 replies
  • 1134 views
  • 2 likes
  • 3 in conversation