---
title: sas_datast_json; CDISC COSA Splotlight Q4 2025
tags: 
author: [森岡裕[SASユーザー総会世話人]](https://image.docswell.com/user/6484025)
site: [Docswell](https://www.docswell.com/)
thumbnail: https://bcdn.docswell.com/page/VJP32RDLE8.jpg?width=480
description: sas_datast_json; CDISC COSA Splotlight Q4 2025 by 森岡裕[SASユーザー総会世話人]
published: November 27, 26
canonical: https://image.docswell.com/s/6484025/KGND79-2026-11-27-185534
---
# Page. 1

![Page Image](https://bcdn.docswell.com/page/VJP32RDLE8.jpg)

sas_dataset_json
CDISC COSA Splotlight Q3 2025
Yutaka Morioka
EPS corporation.


# Page. 2

![Page Image](https://bcdn.docswell.com/page/2EV4DR16JQ.jpg)

Speaker
Yutaka Morioka
Title: SAS Guru
Organization: EPS Corporation
A SAS programmer based in Japan. Besides
my work as a clinical data scientist, actively
engaging in disseminating various SAS
programming techniques from introductory
level to advanced. Working as an organizer
of the SAS User&#039;s Group in Japan.


# Page. 3

![Page Image](https://bcdn.docswell.com/page/57G1YM22EL.jpg)

Brief Introduction to Dataset-JSON.


# Page. 4

![Page Image](https://bcdn.docswell.com/page/4EQDMRP9JP.jpg)

Limitations &amp; Problems of XPT
The SAS® Version 5 (V5) transport file format is an open standard developed
by SAS to support data transfers between systems, especially those running
different operating systems.&quot; SAS V5, being an open standard, allowed FDA
to specify it as the standard required for data submission
(Source:A Short History of CDISC and SAS Transport Files)
But nearly 25 years have passed since then!
CDISC 2024 Japan Interchange | #ClearDataClearImpact
4


# Page. 5

![Page Image](https://bcdn.docswell.com/page/KJ4ZV8XR71.jpg)

Limitations &amp; Problems of XPT
Limitations
・Variable names are limited to a maximum length of 8 byte．
・Variable labels are limited to a maximum length of 40 byte.
・Character variable data are limited to a maximum length of 200 byte.
・Cannot have Encoding information.
・Only ASCII characters can be used, Numeric type is Integer or double only.
etc.
5


# Page. 6

![Page Image](https://bcdn.docswell.com/page/LE1R32NVEG.jpg)

Nice to meet Dataset-JSON.
https://www.cdisc.org/standards/dataexchange/dataset-json/dataset-json-v1-1
6


# Page. 7

![Page Image](https://bcdn.docswell.com/page/GEW1PR4372.jpg)

sas_dataset_json Package


# Page. 8

![Page Image](https://bcdn.docswell.com/page/47ZPKR2GE3.jpg)

https://cosa.cdisc.org/
8


# Page. 9

![Page Image](https://bcdn.docswell.com/page/YJ6MQRVQ7V.jpg)

9


# Page. 10

![Page Image](https://bcdn.docswell.com/page/GJ5ZR8D2E4.jpg)

%m_sas_to_json1_1
Exports a SAS dataset to Dataset-JSON v 1.1
%m_json1_1_to_sas
Imports a dataset-JSON v1.1 into a SAS dataset
%m_sas_to_ndjson1_1
Exports a SAS dataset to NDJSON (Representation of DatasetJSON) format (version 1.1).
%m_ndjson1_1_to_sas
Imports a NDJSON (Representation of Dataset-JSON) format
(version 1.1) into SAS dataset.
10


# Page. 11

![Page Image](https://bcdn.docswell.com/page/LE39P8M1E5.jpg)

https://github.com/Morioka-Yutaka/sas_dataset_json
11


# Page. 12

![Page Image](https://bcdn.docswell.com/page/8EDGLM6KEG.jpg)

12


# Page. 13

![Page Image](https://bcdn.docswell.com/page/V7P32RY3J8.jpg)

Example Usage:- [case 1] default, simple use
%m_sas_to_json1_1(
outpath =/project/json_out,
library = adam,
dataset = adsl,
pretty = Y
);
13


# Page. 14

![Page Image](https://bcdn.docswell.com/page/2JV4DRGN7Q.jpg)

Example Usage:- [case 1] default, simple use
%m_sas_to_json1_1(
outpath =/project/json_out,
library = adam,
dataset = adsl,
pretty = N
);
14


# Page. 15

![Page Image](https://bcdn.docswell.com/page/5EG1YM85JL.jpg)

Example Usage:- [case 2] setting dataset-level metadata
%m_sas_to_json1_1(
outpath=&amp;outpath.,
library=WORK,
dataset=AE,
pretty=Y,
originator=ABC Pharma,
fileOID=http://example.org/studyXYZ/define,
studyOID=XYZ-123,
metaDataVersionOID=MDV.XYZ.1.0,
sourceSystem_name=SAS 9.4,
sourceSystem_version=9.4M7
);
VDE dataset viewer
15


# Page. 16

![Page Image](https://bcdn.docswell.com/page/4JQDMR9L7P.jpg)

Example Usage: - [case 3] set metadata by SAS extended attribute
proc datasets nolist;
modify adsl;
xattr add ds originator=&quot;X corp.&quot;
fileOID=&quot;www.cdisc.org/StudyMSGv2/1/Define-XML_2.1.0/2024-11-11/&quot;
studyOID=&quot;XX001-001&quot;
metaDataVersionOID=&quot;MDV.MSGv2.0.SDTMIG.3.4.SDTM.2.0&quot;
sourceSystem_name=&quot;SASxxxx&quot;
sourceSystem_version=&quot;9.4xxxx&quot; ;
xattr add var
STUDYID (label=&quot;Study Identifier&quot;
dataType=&quot;string&quot;
length=8
keySequence=1)
USUBJID (label=&quot;Unique Subject Identifier&quot;
dataType=&quot;string&quot;
length=7
keySequence=2)
RFSTDTC (label=&quot;Subject Reference Start Date/Time&quot;
dataType=&quot;date&quot;)
AGE (label=&quot;Age&quot;
dataType=&quot;integer&quot;
length=2)
TRTSDT (label=&quot;Date of First Exposure to Treatment&quot;
dataType=&quot;date&quot;
targetDataType=&quot;integer&quot;
displayFormat=&quot;E8601DA.&quot;) ; ;
run;
quit;
%m_sas_to_json1_1(
outpath = /project/json_out,
library = WORK,
dataset = adsl,
pretty = Y);
16


# Page. 17

![Page Image](https://bcdn.docswell.com/page/K74ZV8X5E1.jpg)

17


# Page. 18

![Page Image](https://bcdn.docswell.com/page/LJ1R32N2JG.jpg)

SAS Extended Attributes
SAS Dataset
JSON
Need a receptacle for data leaked by
conversion
18


# Page. 19

![Page Image](https://bcdn.docswell.com/page/GJW1PR42E2.jpg)

SAS Extended Attributes
Starting with SAS 9.4, it is possible to set extended attributes that can
be defined freely and arbitrarily by the user for a dataset or each
variable. Extended attributes consist of a name/value pair, and the
value can be of either a numeric or character type.
The sas7bxat is associated with the
dataset body and has extended meta
information.
19


# Page. 20

![Page Image](https://bcdn.docswell.com/page/4EZPKR24J3.jpg)

The Concept of sas_datset_json
The key feature of this package is that it supplements metadata lacking in SAS
datasets with extended attributes during the conversion between SAS datasets
and Dataset-JSON.
Extended Attribute
SAS Dataset
Dataset-JSON
Metadata
Data
CDISC 2024 Japan Interchange | #ClearDataClearImpact
20


# Page. 21

![Page Image](https://bcdn.docswell.com/page/Y76MQRVGEV.jpg)

21


# Page. 22

![Page Image](https://bcdn.docswell.com/page/G75ZR8DXJ4.jpg)

Example Usage:
SAS Dataset with Extended Attribute
%m_json1_1_to_sas(
inpath=/data/definejson,
ds=ADSL);
22


# Page. 23

![Page Image](https://bcdn.docswell.com/page/9J2RDK8Q7R.jpg)

%m_sas_to_ndjson1_1(
outpath =/project/json_out,
library = adam,
dataset = adsl,
);
23


# Page. 24

![Page Image](https://bcdn.docswell.com/page/DEYD2N6YEM.jpg)

24


# Page. 25

![Page Image](https://bcdn.docswell.com/page/VJN68XZRJ8.jpg)

Foundations and Surrounding Context of the
Package


# Page. 26

![Page Image](https://bcdn.docswell.com/page/YE9LK8ZZ73.jpg)

https://github.com/yabwon/SAS_PACKAGES
CDISC 2024 Japan Interchange | #ClearDataClearImpact
26


# Page. 27

![Page Image](https://bcdn.docswell.com/page/GE8XRZYYJD.jpg)

https://github.com/PharmaForest
https://pharmaforest.github.io/
27


# Page. 28

![Page Image](https://bcdn.docswell.com/page/LEL8KD497R.jpg)

https://github.com/PharmaForest/xattr_kit
28


# Page. 29

![Page Image](https://bcdn.docswell.com/page/4JM62PKVEW.jpg)

29


# Page. 30

![Page Image](https://bcdn.docswell.com/page/PJRPM1XWE9.jpg)

30


# Page. 31

![Page Image](https://bcdn.docswell.com/page/PEX3VY6VJX.jpg)

In Japan, awareness of Dataset-JSON is still limited, partly because the PMDA
has not yet provided much guidance on it.
In addition, many tools and programs developed in the US and Europe do not
work well in Japanese computing environments.
For this reason, our package is designed to run in SAS under Japanese regional
settings and can handle datasets containing Japanese characters.
We also provide explanatory materials in Japanese, tailored for Japanese users.
31


# Page. 32

![Page Image](https://bcdn.docswell.com/page/3EKYQ315JD.jpg)

Conclusion


# Page. 33

![Page Image](https://bcdn.docswell.com/page/L739PGQ175.jpg)

Signature features of my package
・ The package is implemented entirely in 100% SAS code.
・ It leverages SAS extended attributes for managing and
transforming metadata.
・ It is built using the SAS package framework, making it easy to share and
distribute.
・ It is integrated into the PharmaForest ecosystem.
・ It is designed with the Japanese environment in mind and is also used
to promote awareness and adoption within Japan.
33


# Page. 34

![Page Image](https://bcdn.docswell.com/page/87DGL19K7G.jpg)

Things I Aim to Do Next
・ Dataset-JSON Structural Validation and Checks
・ Importing and Applying Metadata from Define.xml
・ Support for Creating Compressed Dataset-JSON
・ Developing seamless integration for validating generated
Dataset-JSON with CDISC CORE from SAS
34


# Page. 35

![Page Image](https://bcdn.docswell.com/page/VJP32QZ3E8.jpg)

The above kanji is a motto of a professional Shogi
(Japanese chess) player,meaning
“Always try a new move.”
35


# Page. 36

![Page Image](https://bcdn.docswell.com/page/2EV4D5WNJQ.jpg)

Thank you for your attention.
Linkdin
github (My Repositories)
PharmaForest
Email
morioka.yutaka038@eps.co.jp
sasyupi@gmail.com
36


