Hi, I am having the following problem when trying to create a CSV report to email out. The title line of the report is showing up like this "((((((((((((((((((((((((((((((((((((((((((((((((((AGT_ENT_US" instead of all the field names. The records themselves are showing up properly.
.set MAXERROR 1
.set width 1300
.set titledashes off
.export report file= / ..... / test.csv
sel
agt_ent_user_id || ',' ||
user_frst_nm || ',' ||
user_last_nm || ',' ||
CCTR_SITE_NM || ',' ||
mgr_ent_user_id || ',' ||
....
from a.b
order by agt_ent_user_id, evt_dt;
.export reset;
.set echoreq on
.exit
EOF
mailx -s "Daily Report" -a / ..... / test.csv
Forums: