Hi All,
I am trying to transfer/upload a file to SAS Content Server specifically to /SASContentServer/repository/default/sasdav/Products/SASRiskGovernanceFramework/RiskGovFrwkMid-Tier/rmc/Resources using proc http as below:
%let SASContentServer = /SASContentServer/repository/default/sasdav/Products/SASRiskGovernanceFramework/RiskGovFrwkMid-Tier/rmc/Resources;
%let webdav_url = &rgf_protocol.://&rgf_host.:&rgf_port.&SASContentServer.;
%put &=webdav_url;
filename in_file '/sasdata/json/test.json';
filename out_file '/sasdata/json/SASContent_log.txt';
Just to update , we were able to transfer the file using curl command.
Hi Des2,
Have you tried to add +json to the content type header? Like in the example below:
ct="application/vnd.sas.models.project+json"
Kind Regards
Hi Mipeli,
Thanks for the reply. I've only tried /vnd.sas.collection+json because I am also not sure what to put.
I've tried what you suggested but it's still the same.
Hi Des2,
This is the official, registered content types.
https://www.iana.org/assignments/media-types/media-types.xhtml#application
Kind Regards,
Just to update , we were able to transfer the file using curl command.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.