BookmarkSubscribeRSS Feed
Yennie
Calcite | Level 5
Hey all...

I have written this piece of code to create a frameset for my html pages... however the frame page is showing up as a blank page...

%Let dir = \\int\Collaborate\PI\Portfoli\PI-Pricing\Risk & Operations\Asset Risk\PROJECTS\VOR Monthly Report Tool\HTML;
%Let frameset = gio_frame.html;
%Let leftframe = gio_inforce_leftframe.html;
%Let righttopframe = rightf_all.html;
Filename gioframe "&dir\&frameset";
Data _Null_;
File gioframe;
Put '';
Put '';
Put '';
Put '';
Put '';
Put '';
Put '';
Put '';
Put '';
Run;

does anyone know the reason why it's blank?

cheers
yennie
3 REPLIES 3
Yennie
Calcite | Level 5
and i forgot to mention it's
%Let output = results.html;

cheers,
yennie
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
With your SAS code, I expect you are getting some type of SAS execution/compilation error, which would be most useful to share.

You will likely find the problem having to do with using quoted-strings and macro variables. A PUT statement will not resolve a macro variable when used with a single-quoted literal. So you need to use double-quotes but since the HTML tag syntax also requires quotes, you must duplicate your quote character for each instance where you want a double-quote to be generated, such as:

1 %let my_quote = Yes, The New Orleans Saints won the Super Bowl!;
2 data _null_;
3 putlog "Hello - I say to you all: " /// """&my_quote""";
4 run;

Hello - I say to you all:


"Yes, The New Orleans Saints won the Super Bowl!"
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds


Scott Barry
SBBWorks, Inc.

Recommended Google advanced search argument, this topic/post:

using macro variables quoted strings site:sas.com
Yennie
Calcite | Level 5
Hey scott,

thanks heaps. amended my script to something like that and works well 🙂

%Let dir = \\int\Collaborate\PI\Portfoli\PI-Pricing\Risk & Operations\Asset Risk\PROJECTS\VOR Monthly Report Tool\HTML\;
%Let frameset = gio_frame.html;
%Let leftframe = gio_inforce_leftframe.html;
%Let righttopframe = rightf_all.html;
%Let output = results.html;

Filename gioframe "&dir&frameset";
Data _Null_;
File gioframe;
Put '';
Put "";
Put '';
Put "";
Put "";
Put '';
Put '';
Run;

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