@sasjs/core 4.57.3 → 4.57.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -10
- package/package.json +1 -1
- package/viya/mv_createfile.sas +6 -6
- package/viya/mv_createfolder.sas +1 -1
package/README.md
CHANGED
|
@@ -147,16 +147,17 @@ filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
|
|
|
147
147
|
- macro names must be lowercase
|
|
148
148
|
- one macro per file
|
|
149
149
|
- prefixes:
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
150
|
+
- _mcf__: macro compiled functions (proc fcmp)
|
|
151
|
+
- _mddl__: macros containing DDL (Data Definition Language)
|
|
152
|
+
- _mf__: macro functions (can be used in open code).
|
|
153
|
+
- _mfv__: macro functions that work only in Viya
|
|
154
|
+
- _ml__: macros that are used to compile LUA modules
|
|
155
|
+
- _mm__: metadata macros (interface with the metadata server).
|
|
156
|
+
- _mmx__: macros that use metadata and are XCMD enabled (working on both windows and unix)
|
|
157
|
+
- _mp__: macro procedures (which generate sas code)
|
|
158
|
+
- _ms__: macro procedures that will only work with [@sasjs/server](https://github.com/sasjs/server)
|
|
159
|
+
- _mv__: macro procedures that will only work in Viya
|
|
160
|
+
- _mx__: macros that work on Viya, SAS 9 EBI and SASjs Server
|
|
160
161
|
- follow verb-noun convention
|
|
161
162
|
- unix style line endings (lf)
|
|
162
163
|
- individual lines should be no more than 80 characters long
|
package/package.json
CHANGED
package/viya/mv_createfile.sas
CHANGED
|
@@ -157,8 +157,10 @@ run;
|
|
|
157
157
|
%end;
|
|
158
158
|
"Accept"="*/*";
|
|
159
159
|
run;
|
|
160
|
-
%put &sysmacroname DELETE &base_uri&fileuri
|
|
161
|
-
|
|
160
|
+
%put &sysmacroname DELETE &base_uri&fileuri;
|
|
161
|
+
%if &SYS_PROCHTTP_STATUS_CODE ne 204 %then %do;
|
|
162
|
+
%put &=SYS_PROCHTTP_STATUS_CODE &=SYS_PROCHTTP_STATUS_PHRASE;
|
|
163
|
+
%end;
|
|
162
164
|
%end;
|
|
163
165
|
|
|
164
166
|
%local url mimetype ext;
|
|
@@ -205,7 +207,7 @@ run;
|
|
|
205
207
|
%local libref2;
|
|
206
208
|
%let libref2=%mf_getuniquelibref();
|
|
207
209
|
libname &libref2 JSON fileref=&fname1;
|
|
208
|
-
|
|
210
|
+
/* Grab the follow on link */
|
|
209
211
|
data &outds;
|
|
210
212
|
set &libref2..links end=last;
|
|
211
213
|
if rel='createChild' then do;
|
|
@@ -214,9 +216,7 @@ data &outds;
|
|
|
214
216
|
end;
|
|
215
217
|
run;
|
|
216
218
|
|
|
217
|
-
%put &sysmacroname:
|
|
218
|
-
%put &base_uri%mfv_getpathuri(&path/&name);%put;
|
|
219
|
+
%put &sysmacroname: &name created at %mfv_getpathuri(&path/&name);%put;
|
|
219
220
|
%put &base_uri/SASJobExecution?_file=&path/&name;%put;
|
|
220
|
-
%put &sysmacroname:;
|
|
221
221
|
|
|
222
222
|
%mend mv_createfile;
|
package/viya/mv_createfolder.sas
CHANGED