PCPYTOCSV converts regular ISeries (AS/400, AS400) database
files (PFs, LFs etc) to their CSV (comma-separated value) equivalents. The
generated CSV records are variable-length. This is one of the commands in our
ISeries
utilities library (click this URL for full contact and pricing
details).
You can choose any single character to separate field values
e.g. a comma, a bar character '|', a tab character or even no character at all.
We use the term 'CSV' to mean any of these.
Conversion of ISeries data to CSV typically occurs where data
must be exported to a non-DB/2 database. For example via PC download then
imported into an external database such as Microsoft Access or SQL Server. Some
PC-based file extract tools will do conversion to CSV, but this tends to be
very slow.
Using PCPYTOCSV, you preconvert to CSV on the ISeries then
download as plain text with just a simple EBCDIC->ASCII
conversion. So the actual conversion to CSV is done on the ISeries, which
compared to a PC has much better background (batch) job facilities and faster
I/O with blocked database reads. The PC job itself will also run much more
quickly if the conversion work is done by the ISeries.
See also the PCPYFRMCSV
command for the reverse conversion from CSV.