From 096bf4fa1161d3854ad0c1a1bb886504bf7e96e4 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Sat, 3 Apr 2021 18:21:29 +0000 Subject: [PATCH] chore: more indentation fixes --- viya/mv_createjob.sas | 13 +++++++------ viya/mv_createwebservice.sas | 26 ++++++++++++++------------ viya/mv_getaccesstoken.sas | 34 +++++++++++++++++----------------- viya/mv_getapptoken.sas | 24 ++++++++++++------------ viya/mv_getjobcode.sas | 4 ++-- 5 files changed, 52 insertions(+), 49 deletions(-) diff --git a/viya/mv_createjob.sas b/viya/mv_createjob.sas index eeda795..0077b98 100644 --- a/viya/mv_createjob.sas +++ b/viya/mv_createjob.sas @@ -5,7 +5,8 @@ Code is passed in as one or more filerefs. %* Step 1 - compile macros ; - filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; + filename mc url + "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; %inc mc; %* Step 2 - Create some SAS code and add it to a job; @@ -154,7 +155,7 @@ proc http method='GET' 'Accept'='application/vnd.sas.collection+json' 'Accept-Language'='string'; %if &debug=1 %then %do; - debug level = 3; + debug level = 3; %end; run; /*data _null_;infile &fname2;input;putlog _infile_;run;*/ @@ -191,13 +192,13 @@ data _null_; file &fname3 TERMSTR=' '; length string $32767; string=cats('{"version": 0,"name":"' - ,"&name" - ,'","type":"Compute","parameters":[{"name":"_addjesbeginendmacros"' + ,"&name" + ,'","type":"Compute","parameters":[{"name":"_addjesbeginendmacros"' ,',"type":"CHARACTER","defaultValue":"false"}'); context=quote(cats(symget('contextname'))); if context ne '""' then do; string=cats(string,',{"version": 1,"name": "_contextName","defaultValue":' - ,context,',"type":"CHARACTER","label":"Context Name","required": false}'); + ,context,',"type":"CHARACTER","label":"Context Name","required": false}'); end; string=cats(string,'],"code":"'); put string; @@ -267,7 +268,7 @@ proc http method='POST' %end; "Accept"="application/vnd.sas.job.definition+json"; %if &debug=1 %then %do; - debug level = 3; + debug level = 3; %end; run; /*data _null_;infile &fname4;input;putlog _infile_;run;*/ diff --git a/viya/mv_createwebservice.sas b/viya/mv_createwebservice.sas index 796a04f..7f7b96b 100644 --- a/viya/mv_createwebservice.sas +++ b/viya/mv_createwebservice.sas @@ -5,7 +5,8 @@ Code is passed in as one or more filerefs. %* Step 1 - compile macros ; - filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; + filename mc url + "https://raw.githubusercontent.com/sasjs/core/main/all.sas"; %inc mc; %* Step 2 - Create some code and add it to a web service; @@ -18,7 +19,7 @@ run; %* send data back; %webout(OPEN) - %webout(ARR,example1) * Array format, fast, suitable for large tables ; + %webout(ARR,example1) * Array format, fast, suitable for large tables; %webout(OBJ,example2) * Object format, easier to work with ; %webout(CLOSE) ;;;; @@ -52,7 +53,8 @@ adapter, add a (different) fileref here. @param contextname= Choose a specific context on which to run the Job. Leave blank to use the default context. From Viya 3.5 it is possible to configure - a shared context - see https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5pyhn1wg3ja0drdl6h.htm&docsetVersion=3.5&locale=en + a shared context - see +https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5pyhn1wg3ja0drdl6h.htm&docsetVersion=3.5&locale=en @version VIYA V.03.04 @author Allan Bowe, source: https://github.com/sasjs/core @@ -163,7 +165,7 @@ proc http method='GET' 'Accept'='application/vnd.sas.collection+json' 'Accept-Language'='string'; %if &debug=1 %then %do; - debug level = 3; + debug level = 3; %end; run; /*data _null_;infile &fname2;input;putlog _infile_;run;*/ @@ -200,23 +202,23 @@ data _null_; file &fname3 TERMSTR=' '; length string $32767; string=cats('{"version": 0,"name":"' - ,"&name" - ,'","type":"Compute","parameters":[{"name":"_addjesbeginendmacros"' + ,"&name" + ,'","type":"Compute","parameters":[{"name":"_addjesbeginendmacros"' ,',"type":"CHARACTER","defaultValue":"false"}'); context=quote(cats(symget('contextname'))); if context ne '""' then do; string=cats(string,',{"version": 1,"name": "_contextName","defaultValue":' - ,context,',"type":"CHARACTER","label":"Context Name","required": false}'); + ,context,',"type":"CHARACTER","label":"Context Name","required": false}'); end; string=cats(string,'],"code":"'); put string; run; /** - * Add webout macro - * These put statements are auto generated - to change the macro, change the - * source (mv_webout) and run `build.py` - */ + * Add webout macro + * These put statements are auto generated - to change the macro, change the + * source (mv_webout) and run `build.py` + */ filename sasjs temp lrecl=3000; data _null_; file sasjs; @@ -616,7 +618,7 @@ proc http method='POST' %end; "Accept"="application/vnd.sas.job.definition+json"; %if &debug=1 %then %do; - debug level = 3; + debug level = 3; %end; run; /*data _null_;infile &fname4;input;putlog _infile_;run;*/ diff --git a/viya/mv_getaccesstoken.sas b/viya/mv_getaccesstoken.sas index 2fc43c1..6fba6e3 100644 --- a/viya/mv_getaccesstoken.sas +++ b/viya/mv_getaccesstoken.sas @@ -1,24 +1,24 @@ - /** - @file mv_getaccesstoken.sas - @brief deprecated - replaced by mv_tokenrefresh.sas +/** + @file mv_getaccesstoken.sas + @brief deprecated - replaced by mv_tokenrefresh.sas - @version VIYA V.03.04 - @author Allan Bowe, source: https://github.com/sasjs/core + @version VIYA V.03.04 + @author Allan Bowe, source: https://github.com/sasjs/core -

SAS Macros

- @li mv_tokenrefresh.sas +

SAS Macros

+ @li mv_tokenrefresh.sas - **/ +**/ - %macro mv_getaccesstoken(client_id=someclient - ,client_secret=somesecret - ,grant_type=authorization_code - ,code= - ,user= - ,pass= - ,access_token_var=ACCESS_TOKEN - ,refresh_token_var=REFRESH_TOKEN - ); +%macro mv_getaccesstoken(client_id=someclient + ,client_secret=somesecret + ,grant_type=authorization_code + ,code= + ,user= + ,pass= + ,access_token_var=ACCESS_TOKEN + ,refresh_token_var=REFRESH_TOKEN + ); %mv_tokenrefresh(client_id=&client_id ,client_secret=&client_secret diff --git a/viya/mv_getapptoken.sas b/viya/mv_getapptoken.sas index 858a033..96a8d54 100644 --- a/viya/mv_getapptoken.sas +++ b/viya/mv_getapptoken.sas @@ -1,19 +1,19 @@ - /** - @file - @brief deprecated - replaced by mv_registerclient.sas +/** + @file + @brief deprecated - replaced by mv_registerclient.sas - @version VIYA V.03.04 - @author Allan Bowe, source: https://github.com/sasjs/core + @version VIYA V.03.04 + @author Allan Bowe, source: https://github.com/sasjs/core -

SAS Macros

- @li mv_registerclient.sas +

SAS Macros

+ @li mv_registerclient.sas - **/ +**/ - %macro mv_getapptoken(client_id=someclient - ,client_secret=somesecret - ,grant_type=authorization_code - ); +%macro mv_getapptoken(client_id=someclient + ,client_secret=somesecret + ,grant_type=authorization_code + ); %mv_registerclient(client_id=&client_id ,client_secret=&client_secret diff --git a/viya/mv_getjobcode.sas b/viya/mv_getjobcode.sas index e01a339..0c4b679 100644 --- a/viya/mv_getjobcode.sas +++ b/viya/mv_getjobcode.sas @@ -5,7 +5,7 @@ Example: %mv_getjobcode( - path=/Public/jobs + path=/Public/jobs ,name=some_job ,outfile=/tmp/some_job.sas ) @@ -129,7 +129,7 @@ data _null_; outfile:write(job) io.close(infile) io.close(outfile) - '; + '; run; %inc "&fpath3..lua"; /* export to desired destination */