BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Nasser_DRMCP
Lapis Lazuli | Level 10

Hello,

i need some hep.

what I have ==>this is my have_table with client number and the web site of the client for exmaple in the "url" column.

what I would like to get ==> an excel file with the "client" colum and by cliquing on a client number, the web site of the corresponding client would open.

 

result ==> I try this code but I do not succeed to make an url depending of the client (of the row).

many thanks in adance for your help

regards

Nasser

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
data have;
input id $ url :$40.;
cards;
1234 http://www.sas.com
4321 http://www.nasa.gov
;

ods excel file='c:\temp\want.xlsx';
proc report data=have nowd;
column url id ;
define url/display noprint;
define id/display ;
compute id;
call define(_col_,'url',url);
call define(_col_,'style','style={foreground=blue textdecoration=underline hreftarget="_blank"}');
endcomp;
run;
ods excel close;

View solution in original post

4 REPLIES 4
Reeza
Super User

Use PROC REPORT with ODS EXCEL instead.

 

See Page 7 in this paper for a code example https://support.sas.com/resources/papers/proceedings18/2479-2018.pdf

 


@Nasser_DRMCP wrote:

Hello,

i need some hep.

what I have ==>this is my have_table with client number and the web site of the client for exmaple in the "url" column.

what I would like to get ==> an excel file with the "client" colum and by cliquing on a client number, the web site of the corresponding client would open.

 

result ==> I try this code but I do not succeed to make an url depending of the client (of the row).

many thanks in adance for your help

regards

Nasser

 


 

Ksharp
Super User
data have;
input id $ url :$40.;
cards;
1234 http://www.sas.com
4321 http://www.nasa.gov
;

ods excel file='c:\temp\want.xlsx';
proc report data=have nowd;
column url id ;
define url/display noprint;
define id/display ;
compute id;
call define(_col_,'url',url);
call define(_col_,'style','style={foreground=blue textdecoration=underline hreftarget="_blank"}');
endcomp;
run;
ods excel close;
Nasser_DRMCP
Lapis Lazuli | Level 10
MANY THANKS !!!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1113 views
  • 2 likes
  • 4 in conversation