This forum has been disabled. Please visit our new Help Desk at help.jitterbit.com

Formatting fields

Questions and answers for configuring and deploying your integrations.

Formatting fields

Postby Yoshitake on Thu Nov 09, 2006 10:28 am

I'm trying to format my database table fields to fill my
fixed width fields file correctly, but I have no clue
about the formatting masks available.
Yoshitake Bookmark and Share
Community Newbie
Community Newbie
 
Posts: 5
Joined: Thu Nov 09, 2006 5:13 am

Postby Frank on Thu Nov 09, 2006 11:08 am

Could you tell me what is formatting masks?

When creating a Text Structure, you select a fix field or character delimited document. By choosing fix field document, you can specify field width for each field. Furthermore, you can set the format for any field. Except for the DateTime data element, the format of the field is taken from C++. For DateTime format you can find the specification in the help text for user function CVTDate().

Frank
Frank Bookmark and Share
Jitterbit Hero
Jitterbit Hero
 
Posts: 136
Joined: Mon Feb 13, 2006 12:40 pm

Postby Yoshitake on Thu Nov 09, 2006 12:21 pm

Frank wrote:Could you tell me what is formatting masks?
Frank


Hi, Frank!
Formatting masks are the symbols used within the famous printf
function.
Recently, Java supports it also, so I expect the "Format" column in the
"Text instructions" to be like that.
Am I wrong?
What masks are supported?
Yoshitake Bookmark and Share
Community Newbie
Community Newbie
 
Posts: 5
Joined: Thu Nov 09, 2006 5:13 am

Postby Frank on Thu Nov 09, 2006 4:05 pm

You are right. The format is the same as it is used in printf function. For writing target we just pass the format to the sprintf function, thus whatever the printf support it should be ok. In addition to the format used in strftime function, the DateTime data element also use some intuitive format as specified in the CVTDate help text.

Frank
Last edited by Frank on Fri Nov 10, 2006 10:40 am, edited 1 time in total.
Frank Bookmark and Share
Jitterbit Hero
Jitterbit Hero
 
Posts: 136
Joined: Mon Feb 13, 2006 12:40 pm

Postby Yoshitake on Fri Nov 10, 2006 5:31 am

Thank you, Frank!
Yoshitake Bookmark and Share
Community Newbie
Community Newbie
 
Posts: 5
Joined: Thu Nov 09, 2006 5:13 am


Return to Using Jitterbit


cron
SourceForge.net Logo  open source integration