1. You can do that:
>>
Search(|<"0") //Search for a "0" zero in column 1 of all lines
Replace("0"," ",BEGIN+ALL+NOERR) //replace all 0 ("0" zero) in column 1 with a space (" ")
Search(|<"-") //Search for a "-" dashes in column 1 of all lines
Replace("0"," ",BEGIN+ALL+NOERR) //replace all - ("-" dashes) in column 1 with a space (" ")
<<
with a single operation:
Replace("|{|<0,|<-}"," ",BEGIN+ALL+NOERR)
Search the help or the manual (p. 147) for "pattern matching codes"
2.
> make all lines the same length ( pad function/macro line length of 162)
repeat(all){
EOL()
ins_indent(162)
line()
}
ins_indent(162) does nothing if last character in line >= 162.
3. So, your macro would look like (untested!):
Replace("|000","",BEGIN+ALL+NOERR) //replace all nulls with nothing
Replace("1DB0080R","|012DB0080R",BEGIN+ALL+NOERR) //replace string
Replace("|{|<0,|<-}"," ",BEGIN+ALL+NOERR)
BOF()
repeat(all){
EOL()
ins_indent(162)
line()
}
|
|