Explanation requested for standard schema file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Cherukuri
Participant
Posts: 46
Joined: Wed Jul 25, 2007 2:43 am
Location: India
Contact:

Explanation requested for standard schema file

Post by Cherukuri »

Hi,

My application is reading fixed width data file thru sequential file stage with file pattern read method. The stage refers a schema file as shown below.

Can anyone tell me the meaning of width in {} against the fields ?

Code: Select all

record {record_delim='\n', record_length=fixed, charset='UTF-16LE', delim=none}

(
   
PERNR:ustring[8]{width=16};
   
ENDDA:ustring[10]{width=20};
   
BEGDA:ustring[10]{width=20};
   
AEDTM:ustring[10]{width=20};
   
UNAME:ustring[12]{width=24};
   
GRPVL:ustring[4]{width=8};
   
PERSONID_EXT:ustring[20]{width=40};
   
DS_DUMMY_COL:ustring[1] {width=2};

)
Regards,
Kiran
Cheru
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Width in bytes. UTF-16LE is a multi-byte character set where each character is stored in 2 bytes (16 bits) hence the doubling you see. And "LE" is for Little Endian.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply