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.
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.