BookmarkSubscribeRSS Feed
Calcite | Level 5



I'm trying to post zipped  XPT files to a URL using the code below...

But the output file tells me that I am - "Missing boundary header", hence end up with a 400 Bad Request.


This is what I see when I create an output file to capture the response from my PROC. I know my macro variable boundary resolves because I see it from my %PUT in the code.

What am I "missing" here ? Help appreciated.

@ChrisHemedinger - any insight ? Thanks in advance.







filename XptFile "../dataraw/";

/* Set the authorization header */
%let auth_header = Authorization=Bearer &ACCESS_TOKEN;

/* Set boundary */ %let boundary=%sysfunc(uuidgen());
%put &boundary.; /* Make the HTTP PUT request */ filename response temp; proc http method="POST" url="&base_uri/repository/container/&containerAID/&version/upload/Raw Data" in=XptFile out=response; headers 'Authorization'="Bearer &ACCESS_TOKEN"; headers 'Content-Type'="multipart/form-data" 'boundary' = "&boundary."; run; %put &SYS_PROCHTTP_STATUS_CODE.; %put &SYS_PROCHTTP_STATUS_PHRASE.;




Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 1 in conversation