03-06-2025
lexjansen
Obsidian | Level 7
Member since
04-18-2021
- 17 Posts
- 30 Likes Given
- 1 Solutions
- 24 Likes Received
-
Latest posts by lexjansen
Subject Views Posted 3408 08-12-2024 03:15 PM 2587 08-12-2024 02:57 PM 3668 07-18-2024 04:25 PM 2858 07-16-2024 08:08 AM 2976 07-15-2024 12:34 PM 1181 06-26-2024 07:15 AM 1823 11-10-2023 08:43 PM 1892 11-10-2023 07:53 AM 42604 01-27-2023 09:02 AM 42628 01-27-2023 08:04 AM -
Activity Feed for lexjansen
- Got a Like for Re: Add SAS Packages Framework to the SAS Base/Viya. 04-04-2025 05:12 AM
- Liked Re: Please end the chaos for Kurt_Bremser. 11-08-2024 01:55 PM
- Liked Make "hidden" files accessible for Kurt_Bremser. 11-08-2024 01:55 PM
- Got a Like for Re: convince SAS to "see" hidden files. 08-16-2024 04:39 AM
- Got a Like for Re: convince SAS to "see" hidden files. 08-13-2024 05:37 AM
- Got a Like for Re: rendering define.xml. 08-13-2024 02:05 AM
- Got a Like for Re: convince SAS to "see" hidden files. 08-12-2024 09:27 PM
- Got a Like for Re: convince SAS to "see" hidden files. 08-12-2024 04:16 PM
- Posted Re: rendering define.xml on SAS Health and Life Sciences. 08-12-2024 03:15 PM
- Posted Re: convince SAS to "see" hidden files on SAS Programming. 08-12-2024 02:57 PM
- Posted Re: rendering define.xml on SAS Health and Life Sciences. 07-18-2024 04:25 PM
- Posted Re: convince SAS to "see" hidden files on SAS Programming. 07-16-2024 08:08 AM
- Liked Re: convince SAS to "see" hidden files for Kurt_Bremser. 07-15-2024 05:23 PM
- Posted Re: convince SAS to "see" hidden files on SAS Programming. 07-15-2024 12:34 PM
- Liked PROC FCMP: Add support for optional parameters (without using arrays) for ChrisNZ. 07-10-2024 08:31 AM
- Got a Like for Re: Export SAS dataset to JSON with missing string variable as null. 07-09-2024 07:41 AM
- Posted Re: Export SAS dataset to JSON with missing string variable as null on SAS Programming. 06-26-2024 07:15 AM
- Got a Like for Re: rendering define.xml. 02-28-2024 02:34 PM
- Liked Re: Fun w/SAS ODS Graphics: Total Ellipse of the Heart for Rick_SAS. 02-10-2024 12:14 PM
- Liked Fun w/SAS ODS Graphics: Total Ellipse of the Heart for tc. 02-10-2024 12:14 PM
-
Posts I Liked
Subject Likes Author Latest Post 4 7 2 13 2 -
My Liked Posts
Subject Likes Posted 1 05-27-2022 05:58 PM 1 08-12-2024 03:15 PM 7 08-12-2024 02:57 PM 1 06-26-2024 07:15 AM 1 08-09-2022 02:58 PM
08-12-2024
03:15 PM
1 Like
When you want to create a modular design, it is quite common to import stylesheets (xsl:import). PROC XSL does not support that.
An extended example of this is how the SAS Clinical Standards Toolkit implemented transformations:
https://github.com/sassoftware/clinical-standards-toolkit/tree/main/standards/cstdefinexml21/source/xsl-repository/DEFINE-XML/2.1/import
... View more
08-12-2024
02:57 PM
7 Likes
My original use-case was being able to delete a folder structure cloned from GitHub.
I was not able to do this, because the folder structure contained hidden files like .gitkeep and .gitignore.
It turns out that the GIT_DELETE_REPO function does exactly what I was looking for.
The GIT_DELETE_REPO function deletes a specified local Git repository and all of the contents inside that repository.
And actually, the function does not seem to care whether the folder is a Git folder. It will just delete any folder structure.
data _null_; RC = GIT_DELETE_REPO('/home/lexjansen/dataset-json-sas'); put RC=; run;
... View more
07-18-2024
04:25 PM
One thing that I ran into is that PROC XSL does not work well, when your stylesheet imports other stylesheets. If I remember well, it had issues resolving relative paths that were used for including other stylesheets.
... View more
07-15-2024
12:34 PM
Hi Bart,
Did you ever find a solution to this?
I'm trying to delete a folder structure cloned from GitHub, that contains .gitignore and .gitkeep files.
I'm running into the same issue.
Thanks,
Lex
... View more
06-26-2024
07:15 AM
1 Like
This is a nice trick, but it is not going to be very efficient for very large datasets with lots of character data. I wish SAS supported null for missing character data in JSON.
... View more
11-10-2023
08:43 PM
Thanks, Chris, I get that. SAS OnDemand is really a vanilla SAS environment to get 'a taste of SAS'. I appreciate your detailed response.
... View more
11-10-2023
07:53 AM
I know I can connect SAS on Demand with SASPy. But I like to to test SAS code that uses Python functions created with PROC FCMP at SAS on Demand. It looks like MAS_PYPATH is not set in SAS on Demand. Is there a way to do this? Thanks, Lex ERROR: masPublish encountered a failure. ERROR: Foreign Language Compilation messages: ERROR: Python compile: ERROR: MAS_PYPATH environment variable is undefined. ERROR: Python compile: ERROR: tkmaspyPublish encountered a failure in tkmaspyConnect, rc=0x803FC26A. ERROR: Unable to publish program for foreign language execution. ERROR: Error reported in function 'python:PUBLISH' in statement number 6 at line 21 column 6.
... View more
01-27-2023
08:04 AM
Another approach for reading JSON into SAS datasets is using PROC LUA. https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2019/3113-2019.pdf https://www.lexjansen.com/cgi-bin/xsl_transform.php?x=phuse2021#phuse2021.ad06 https://www.lexjansen.com/pharmasug/2021/AD/PharmaSUG-2021-AD-168.pdf Another use case of working with JSON in SAS is Dataset-JSON. Dataset-JSON is a new proposed format to replace the antiquated SAS v5 XPT files for submission of clinical data to regulatory agencies: https://www.lexjansen.com/cgi-bin/xsl_transform.php?x=pharmasug2022#pharmasug2022.ad150
... View more
08-09-2022
02:58 PM
1 Like
There are also a number of presentations that have been given over the years about the Clinical Standards Toolkit. Go to https://www.lexjansen.com/cgi-bin/saspapers_query.php and search for: TITLE contains: clinical + standards + toolkit This will give 34 results.
... View more
07-07-2022
08:29 AM
2 Likes
CDISC moved from BitBucket to GitHub: https://github.com/cdisc-org/sdtm-adam-pilot-project
... View more
05-27-2022
06:17 PM
2 Likes
It is not a problem with the XML. The fact that Chrome and Edge do not render the Define-XML file is because of security issues. No modern browser allows the rendition of XML by applying an XSL file within the browser. Internet Explorer was the only browser that still allowed it. But, as you mention, IE has long been abandoned by Microsoft, and soon will be end-of-life. You can use PROC XSL in SAS to create an HTML file from the XML and the stylesheet that can be opened by any browser. PROC XSL can be limited, so here is another solution to create HTML: https://swhume.github.io/blog-2022-generate-html-from-xml.html
... View more
05-27-2022
05:58 PM
1 Like
Great idea!
... View more