lexjansen / dataset-json-sas

Dataset-JSON SAS Implementation
MIT License
14 stars 6 forks source link

CreateMetadataFromDefineXML macro #33

Open Dipal88 opened 2 months ago

Dipal88 commented 2 months ago

code does not work of CreateMetadataFromDefineXML if define file version is 2.0

lexjansen commented 2 months ago

Thank you. Please add detail about the problem, including a Define-XML 2.0 file that demonstrates the issue.

lexjansen commented 1 month ago

@Dipal88 Do you have any more details?

Dipal88 commented 1 month ago

Hi,

Sorry for the late reply.

Actually I tried the whole code for prepared CDISC package with define 2.0. but that macro did not work. As you said to give more details, I have to re-run with another project and check if it is working or not. Give me some time . I will reply.

Thank you for the patience.

Thank you.

Dipal Modi

On Wed, 17 Jul, 2024, 10:21 pm Lex Jansen, @.***> wrote:

@Dipal88 https://github.com/Dipal88 Do you have any more details?

— Reply to this email directly, view it on GitHub https://github.com/lexjansen/dataset-json-sas/issues/33#issuecomment-2233758388, or unsubscribe https://github.com/notifications/unsubscribe-auth/BJZKXAROKBZBZ2BDW5I7UR3ZM2OIPAVCNFSM6AAAAABKWN42TSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTG42TQMZYHA . You are receiving this because you were mentioned.Message ID: @.***>

lexjansen commented 1 month ago

Thank you.

lexjansen commented 1 month ago

I downloaded one of the releases from https://github.com/lexjansen/dataset-json-sas/releases. Both will work.

I used the Define-XML file from https://www.cdisc.org/standards/data-exchange/define-xml/define-xml-v2-0 with the following code:

%* update this location to your own location;
%let project_folder=/_github/lexjansen/dataset-json-sas-1.0;
%include "&project_folder/programs/config.sas";

libname meta "&project_folder/test";

/* Create metadata from Define-XML for SDTM */
%CreateMetadataFromDefineXML(
   definexml=&project_folder/test/define2-0-0-example-sdtm.xml,
   metadatalib=meta
   );

It ran without issues. I will be happy to help.