DATA Step, Macro, Functions and more

Openclinica format truncation

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

Openclinica format truncation

Hi, 

 

when using xmltype=CDISCODM FormatActive=YES FormatNoReplace=NO FormatLibrary="WORK" option, for some reason format has been truncated for start, end and label columns.  Has anyone come across this problem before? 

 

thanks 

Michelle 

 


Accepted Solutions
Solution
‎04-21-2017 06:40 PM
Trusted Advisor
Posts: 1,128

Re: Openclinica format truncation

I believe we will have the length in xml file for the variables start and end, could you please check the length assigned to them, you need to increase the length values for these variables as required.
Thanks,
Jag

View solution in original post


All Replies
Trusted Advisor
Posts: 1,128

Re: Openclinica format truncation

[ Edited ]

Could you please check the column attributes in the xml file for the respective variables.

 

since you are trying to create the SAS dataset from the xml file, I believe there could be an issue with the data in xml file.

 

Is the name= where we assign the label, is it complete. If you could share the xml data for that portion it will help us.

Thanks,
Jag
Occasional Contributor
Posts: 6

Re: Openclinica format truncation

hi, 

 

Please see attached pictures.  

 

thanks 


format truncation.PNGxml.PNG
Occasional Contributor
Posts: 6

Re: Openclinica format truncation

Hi, 

we used the code below.  As the format start and end length for AE is only $16, so the rest of the dataset format has been truncated to 16 characters. However I am not so sure the solution to this problem: 

 

libname out "\\xxx\Sandbox\MX";
filename odm0 '\\xxx\\AU2DATA.xml';
libname odm0 xml xmltype=CDISCODM FormatActive=YES FormatNoReplace=NO FormatLibrary="WORK";
%MACRO dsconv(dsname);

data out.&dsname;
set odm0.&dsname;
run;
proc contents data=out.&dsname VARNUM noprint out = &dsname;
run;
%mend;
%dsconv(AE);

Solution
‎04-21-2017 06:40 PM
Trusted Advisor
Posts: 1,128

Re: Openclinica format truncation

I believe we will have the length in xml file for the variables start and end, could you please check the length assigned to them, you need to increase the length values for these variables as required.
Thanks,
Jag
Occasional Contributor
Posts: 6

Re: Openclinica format truncation

Hi Jag, 

 

problem is solved.  We  are using the most up to date version of the openclinica(3.11), which gives us xml file, mapper and sas_format.sas file.  The sas_format. sas file includes all the formats as well as all the datasets in the XML file. 

 

thank you very much for your suggestions. 

 

If any one intersted: 

https://docs.openclinica.com/3.1/openclinica-user-guide/export-datasets/formats-dataset-files

 

regards

Michelle 

Trusted Advisor
Posts: 1,128

Re: Openclinica format truncation

Thank you for your response
Thanks,
Jag
☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 163 views
  • 0 likes
  • 2 in conversation