Re: 4gl writing to a pure text file
Posted in 1994
In article <2un7co$n7q@blackice.winternet.com> keithr@winternet.com (Keith Root) writes: >I have the need to create a flat ascii file for an off line application. >The file is fixed length, 192 characters. >What is the easiest/fastest way from a 4gl program to write to an ascii text >file? I have come up with some of the following. > >1. use the run command to echo >> filea - after formatting rows >2. create table with 1 column (192 char) and format a variable in the 4gl > code and update/insert - unload and strip "|" (2 passes - seems messy) > >can someone point me to doco (4GL - 4.01) or have any ideas?? Well, you could always just write out a report with top margin 0 bottom margin 0 left margin 0 right margin 0 page length 1 - the output is pretty flat, pretty ascii. I don't know any reason why this wouldn't get you what you want. Paul