hi, i am trying to create mfd's on txt files and the data in these txt files is tab delimited so i am using suffix = fix SEGNAME=SEG, SEGTYPE=S01, $ FIELD=NAME, ALIAS=E01, USAGE=A7, ACTUAL=A07, $ FIELD=AGE, ALIAS=E02, USAGE=A2, ACTUAL=A02, $ FIELD=DEGREE, ALIAS=E03, USAGE=A4, ACTUAL=A4, $ FIELD=COLOR, ALIAS=COLOR, USAGE=A2, ACTUAL=A02,$
the problem is when i am trying to view the data its mixing the values .that is if name is less then a7 then its combing both name and age and displaying it under name. for example if name= ben and age = 25 then both the values are displayed under field 1 instead of displaying ben under field1 and 25 under field2. any ideas where i am going wrong Thanks
And if you don't, consider getting one. Lots of good info.
April 01, 2006, 09:50 AM
<JG>
Codermonkey is correct,
You should be using either format TAB or TABT.
If your first row contains column titles use TABT if there are no titles use TAB.
Also you must be sure that it is a real TAB/TABT file from a WebFocus perspective. All trailing spaces should be truncated, text really should be wrapped in single quotes (') and single quotes in text (') should appear as two single quotes. So O'Brian would look like O''Brian. It should not contain any binary values. Everything should be in plain text.This message has been edited. Last edited by: <JG>,
April 03, 2006, 02:16 PM
chelsea
Thanks Codermonkey and JG for your replies. i tried Tab but still having the same problem. JG how do i convert the .txt file intotab/tabt file from wf perspective.
April 03, 2006, 02:35 PM
<JG>
chelsea,
You do not control it. The system/people supplying it, control it.
What system is it coming from?
Also If you get it as txt then it’s more likely fixed and not tab.
Strange!
April 03, 2006, 02:42 PM
chelsea
Hi JG,data file is sent as ftp to my domain in the form of .txt file and the data in this file is space separated.i am creating an mfd on this file but couldnt able to organise the data into the fields specified correctly. and i am using suffix = fix but still its not able to recognise the space separated values.
April 03, 2006, 04:25 PM
codermonkey
I'd like to ask a couple of questions: 1) Is the file tab delimited or space delimited? They are not the same so knowing which the file contains matters. 2) Are you the only person using this FTP'd file? If so, can you request that they dump the data differently -- comma delimited, for example-- and FTP that?
I've never used it, but if you are having issues with FIX and TAB and can not change how you receive the data, it might be worth checking into. Good luck!