How can I create a tab-delimited file (output) within a RPG program with headings -- required to FTP to a Unix server?
You will have to use the QDBRTVFD API to retrieve the File Description using the FILD0200 format to get the field headers. You must then convert the fields and place a tab character between them prior to writing to the output file (DB2 or IFS). The Tab character will be different for output to DB2 than it will be outputting to IFS.
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.