05-10-2018 01:58 PM
05-10-2018 05:01 PM
I need help for the below
data new ;
I would need the below output for x value
X = <A href=" http://google.com' " target="_blank">Click Here</A>.
can any body help me on this
First thing is before assigning any value to the variable x is to define length long enough to hold the longest expected line. Otherwise the initial assignment sets the length of the variable to 17 characters and anything inserted before that would loose characters at the end.
data new ; length x $ 200; x ='http://google.com'; x = catt('<A href="',x,' "target="_blank">Click Here</A>'); put x; run ;
this assumes that the single ' you showed at the end of google.com was accidentally included in a copy and paste. If that is not the case show only the text of the desired result not something that looks like an assignment statement that won't work.