mirror of
https://github.com/sasjs/core.git
synced 2025-12-11 06:24:35 +00:00
Merge pull request #311 from sasjs/allanbowe/mv-createfile-needs-a-310
feat: adding ctype option to mv_createfile.sas macro
This commit is contained in:
8
all.sas
8
all.sas
@@ -22015,7 +22015,8 @@ run;
|
|||||||
@param [in] contentdisp= (inline) Content Disposition. Example values:
|
@param [in] contentdisp= (inline) Content Disposition. Example values:
|
||||||
@li inline
|
@li inline
|
||||||
@li attachment
|
@li attachment
|
||||||
|
@param [in] ctype= (0) Set a default HTTP Content-Type header to be returned
|
||||||
|
with the file when the content is retrieved from the Files service.
|
||||||
@param [in] access_token_var= The global macro variable to contain the access
|
@param [in] access_token_var= The global macro variable to contain the access
|
||||||
token, if using authorization_code grant type.
|
token, if using authorization_code grant type.
|
||||||
@param [in] grant_type= (sas_services) Valid values are:
|
@param [in] grant_type= (sas_services) Valid values are:
|
||||||
@@ -22043,6 +22044,7 @@ run;
|
|||||||
,inref=
|
,inref=
|
||||||
,intype=BINARY
|
,intype=BINARY
|
||||||
,contentdisp=inline
|
,contentdisp=inline
|
||||||
|
,ctype=0
|
||||||
,access_token_var=ACCESS_TOKEN
|
,access_token_var=ACCESS_TOKEN
|
||||||
,grant_type=sas_services
|
,grant_type=sas_services
|
||||||
,mdebug=0
|
,mdebug=0
|
||||||
@@ -22094,8 +22096,10 @@ filename &fref filesrvc
|
|||||||
folderPath="&path"
|
folderPath="&path"
|
||||||
filename="&name"
|
filename="&name"
|
||||||
cdisp="&contentdisp"
|
cdisp="&contentdisp"
|
||||||
|
%if "&ctype" ne "0" %then %do;
|
||||||
|
ctype="&ctype"
|
||||||
|
%end;
|
||||||
lrecl=1048544;
|
lrecl=1048544;
|
||||||
|
|
||||||
%if &intype=BINARY %then %do;
|
%if &intype=BINARY %then %do;
|
||||||
%mp_binarycopy(inref=&inref, outref=&fref)
|
%mp_binarycopy(inref=&inref, outref=&fref)
|
||||||
%end;
|
%end;
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
@param [in] contentdisp= (inline) Content Disposition. Example values:
|
@param [in] contentdisp= (inline) Content Disposition. Example values:
|
||||||
@li inline
|
@li inline
|
||||||
@li attachment
|
@li attachment
|
||||||
|
@param [in] ctype= (0) Set a default HTTP Content-Type header to be returned
|
||||||
|
with the file when the content is retrieved from the Files service.
|
||||||
@param [in] access_token_var= The global macro variable to contain the access
|
@param [in] access_token_var= The global macro variable to contain the access
|
||||||
token, if using authorization_code grant type.
|
token, if using authorization_code grant type.
|
||||||
@param [in] grant_type= (sas_services) Valid values are:
|
@param [in] grant_type= (sas_services) Valid values are:
|
||||||
@@ -52,6 +53,7 @@
|
|||||||
,inref=
|
,inref=
|
||||||
,intype=BINARY
|
,intype=BINARY
|
||||||
,contentdisp=inline
|
,contentdisp=inline
|
||||||
|
,ctype=0
|
||||||
,access_token_var=ACCESS_TOKEN
|
,access_token_var=ACCESS_TOKEN
|
||||||
,grant_type=sas_services
|
,grant_type=sas_services
|
||||||
,mdebug=0
|
,mdebug=0
|
||||||
@@ -103,8 +105,10 @@ filename &fref filesrvc
|
|||||||
folderPath="&path"
|
folderPath="&path"
|
||||||
filename="&name"
|
filename="&name"
|
||||||
cdisp="&contentdisp"
|
cdisp="&contentdisp"
|
||||||
|
%if "&ctype" ne "0" %then %do;
|
||||||
|
ctype="&ctype"
|
||||||
|
%end;
|
||||||
lrecl=1048544;
|
lrecl=1048544;
|
||||||
|
|
||||||
%if &intype=BINARY %then %do;
|
%if &intype=BINARY %then %do;
|
||||||
%mp_binarycopy(inref=&inref, outref=&fref)
|
%mp_binarycopy(inref=&inref, outref=&fref)
|
||||||
%end;
|
%end;
|
||||||
|
|||||||
Reference in New Issue
Block a user