Re: Help Mr. Wizard! Help! (Fixed length output & data conversion)
Posted in 1996
Mike Segel wrote } }> Lance Hamilton started }> }> }ACE'S arithmetic stack has exceeded it's bounds. The expression here is }> }too complicated. }> }> I have no manuals handy but remember there is a maximum of 132 (+/- ?) }> columns for ACE reports. }> }OK, since you are worried about the \\n character being embedded in to }your output, do the following: } }1) Write your report in ace, using the COLUMN statement to allow for } fixed width fields. }2) Write your report to lets say allow for 80 characters or so } on the line. (What ever fits your field dimensions.) }3) Write a simple C program like : You don't have to use C - it's simplier to take 'tr': }This C program will strip the newline characters from your output tr -d "[\\n]" -- Chris Drauch ...................................................................... . c/o DRAUCH Ges.m.b.H. Tel. 43/ 3135/46387-0 . . Gewerbestrasse 5 Fax 43/ 3135/4638728 . . A-8071 Hausmannstaetten EMail cdr@xteam.co.at . ......................................................................