Focal Point
MFD File Part 2

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2521004312

February 15, 2007, 05:55 PM
gregson06
MFD File Part 2
Okay, I'm trying to set up an MFD of a file that is not comma delimited, or tab delimited, however each field is sequentially next to the other, in fact, they are probably space delimited, but if I were to ignore this fact, is there a format I can use (like SUFFIX=...) that will treat each consecutive non blank as a new variable for a column value? Any suggestions will help so much on this one.

Thanks!
February 15, 2007, 06:05 PM
susannah
SUFFIX=FIX
read a flat file where columns begin and end in known,constant locations.
If that doesn't work for you, and you do indeed have a variable width record with a space between columns, then try SUFFIX=DFIX
and DELIMITER/A1=' '; in the mfd




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
February 16, 2007, 09:50 AM
jgelona
So, are you saying that if I have delimited data, (i.e. tab delimited), I don't need a MFD with a single field and use the GETTOK function to extract the individual fields?

How long has this been around?

Thanks.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
February 16, 2007, 10:10 AM
<JG>
2001 at least version 5.1
February 16, 2007, 10:16 AM
jgelona
2001? Well I guess I need to start paying better attention to New Features.

Thanks


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
February 16, 2007, 10:18 AM
gregson06
That's correct, the only thing is that when you define the MFD for comma delimited file, in the reporting program itself, you have to put "PCOMMA=ON " right before you retrieve data from the file. Otherwise you'll get an error and some gibberish from the file. And of course, using this method, you can define each field on the MFD and access them individually in the report merely by field name.