Search the web
Sign In
New User? Sign Up
trialdb
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Field Width in Extracts SAS Files   Message List  
Reply | Forward Message #514 of 564 |
Re: [trialdb] Field Width in Extracts SAS Files

Thanks for the comment -- some of the SAS programmers requested it as the Metadata Length was not set for many of the fields but I am in the process of modifying this in the current version --
so that Patient_id for example is correct and the other non-eav fields are correct -- thanks
cindy
----- Original Message -----
Sent: Tuesday, January 16, 2007 4:13 PM
Subject: [trialdb] Field Width in Extracts SAS Files

Good afternoon!

I noticed this piece of code was added to the 2006 version (as opposed
to the 2004 version):

If (Datatype = "S" Or Datatype = "T") Then fldArgs("FLDWIDTH") = 255
'change all to use the 255 as fldwidth doesn't make sense And fldwidth =
"0"
'note: In TrialDB, widths are not set, since the maximum width is used
anyway for EAV fields

This makes all string and text fields in the SAS program 255 characters
long. In addition to the EAV strings and texts, this also affects
non-EAV data, such as PATIENT_ID, which is string and 15 characters long
in the database. Does this change make sense when dealing with non-EAV
data?

Another question is: was there something seriously wrong with the
widths taken from the metadata that you had to switch to the 255 fixed
width?

Thank you,

Mihai Virtosu



Wed Jan 17, 2007 2:34 pm

cindytdb
Offline Offline
Send Email Send Email

Forward
Message #514 of 564 |
Expand Messages Author Sort by Date

Good afternoon! I noticed this piece of code was added to the 2006 version (as opposed to the 2004 version): If (Datatype = "S" Or Datatype = "T") Then...
Mihai Virtosu
virtosumihai
Offline Send Email
Jan 16, 2007
9:19 pm

Fldwidth 255, I believe, specifies the MAXIMUM field width rather than the absolute (ie., the field's contents are not padded with spaces- this is like ...
Prakash Nadkarni
prakash.nadk...
Offline Send Email
Jan 16, 2007
11:11 pm

Thanks for the comment -- some of the SAS programmers requested it as the Metadata Length was not set for many of the fields but I am in the process of...
Cynthia
cindytdb
Offline Send Email
Jan 17, 2007
2:36 pm

it's only a matter of formatting for the data dictionary - but Dianna asked that the Patient_ID be set to 15 so I have modified that -- ... From: Prakash...
Cynthia
cindytdb
Offline Send Email
Jan 17, 2007
3:06 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help