|
Hi Selina, That might be easiest, to do the last bit of editing outside Ferret in your c++ (I think sed is commonly included as part of Unix, so it still might be an option). ASCII output from Ferret is designed to have all the information available to you, but it is not set up to be flexible in all possible ways You can use the lengths of the strings to create format statements that'll align the text let len = strlen(ut1) list/file=temp.txt/nohead/format=(8X,A`len`)/APPEND ut1 let len = strlen(dt1) list/file=temp.txt/nohead/format=(8x,A`len)/APPEND dt1 ...And, rather than making a string bf1 containing the bad flag, use a FORMAT statement to write out the numeric value with the format that you want: ... let bf = `variable, return=bad` list/file=temp.txt/nohead/format=(8x,"BAD FLAG : ", f8.4)/APPEND bf Selina Satterfield wrote:
|