PH and text files

Peter Bateman pfbcs@hotmail.com
Sat, 16 Apr 2005 19:23:00 -0300


QUICK can do the job of expanding a delimited file.


Define your fields in  a record structure called testdel
>ele x c 20
>ele y n 9 def dat  int size 4
>ele z d 8 def dat  zoned size 8
>file testdel org direct
>recor testdel
>item x
>item y
>item z
>load

Let say your delimiter is ;

SCREEN x AUTOUPDATE
FILE testdel
GEN
procedure initialize
push entry
END

delimited_file
hi;1;20010101;
foo;1;20030301;
a long way;20000;20060101;


QUICK auto=x  < delimited_file

quiz
2005/04/16                           testd                             PAGE  
  1

  X                           Y            Z

  hi                               1  2001/01/01
  foo                              1  2003/03/01
  a long way                  20,000  2006/01/01

Regards,
Peter

_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen 
Technology. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
  Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.