diff --git a/c/datasetService.c b/c/datasetService.c index 3aabb11c9..8e25702a5 100644 --- a/c/datasetService.c +++ b/c/datasetService.c @@ -108,6 +108,15 @@ static int serveDatasetContents(HttpService *service, HttpResponse *response){ updateDataset(response, filename, TRUE); } + else if (!strcmp(request->method, methodPUT)){ + char *l1 = stringListPrint(request->parsedFile, 1, 1, "/", 0); + char *percentDecoded = cleanURLParamValue(response->slh, l1); + char *filenamep1 = stringConcatenate(response->slh, "//'", percentDecoded); + char *filename = stringConcatenate(response->slh, filenamep1, "'"); + zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_DEBUG, "Allocating dataset: %s\n", filename); + fflush(stdout); + newDataset(response, filename, TRUE); + } else if (!strcmp(request->method, methodDELETE)) { char *l1 = stringListPrint(request->parsedFile, 1, 1, "/", 0); char *percentDecoded = cleanURLParamValue(response->slh, l1);