Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index.html not rendering in Viya 4 with SAS code deployment #1247

Open
allanbowe opened this issue Sep 6, 2022 · 1 comment
Open

index.html not rendering in Viya 4 with SAS code deployment #1247

allanbowe opened this issue Sep 6, 2022 · 1 comment
Assignees

Comments

@allanbowe
Copy link
Member

the current index.html file has these properties:

"properties": {
"RECFM": "V",
"TERMSTR": "LF",
"LRECL": "1048544"
},
"contentDisposition": "inline",
"contentType": "application/octet-stream",
"encoding": "UTF-8",

A functional index.html has these properties:

"properties": {},
"contentDisposition": "inline;filename*=utf-8''clickme3.html",
"contentType": "text/html",
"description": "",
"documentType": "file",
"encoding": "UTF-8",
@allanbowe allanbowe self-assigned this Sep 6, 2022
@allanbowe
Copy link
Member Author

This is the current code that creates the file:

%let filename=index.html;
filename filecode temp lrecl=32767;
data _null_;
file filecode;
 put 'PCFET0NUWVBFIGh0bWw+CjxodG1sPgoKPGhlYWQ+CiAgPG1ldGEgY2hhcnNldD0idXRmLTgiIGh0dHAtZXF1aXY9IlgtVUEtQ29tcGF0aWJsZSIgY29udGVudD0iSUU9ZWRnZSIgLz4KICA8bGluayByZWw9InNob3J0Y3V0IGljb24iIGhyZWY9Ii4vZmF2aWNvbi5pY28iIC8+CiAgPGxpbmsg'@;
 put 'aHJlZj0iaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3M/ZmFtaWx5PVJvYm90byZkaXNwbGF5PXN3YXAiIHJlbD0ic3R5bGVzaGVldCIgLz4KICA8bGluayByZWw9InN0eWxlc2hlZXQiIGhyZWY9InN0eWxlLmNzcyIgLz4KICA8c2NyaXB0PgogICAgZnVuY3Rpb24gaW5pdFNhc0pz'@;
 put 'KCkgewogICAgICBzYXNqcyA9IG5ldyBTQVNqcy5kZWZhdWx0KHsKICAgICAgICBhcHBMb2M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9uZSI+PC9kaXY+CjwvYm9keT4KCjwvaHRtbD4K';
run;
%mv_createfile(path=&appLoc/&path, name=&filename, inref=filecode, intype=BASE64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant