PCPYFRMCSV builds regular ISeries (AS/400, AS400) database file
(PF, LF etc) records from their CSV (comma-separated value) equivalents. This
is one of the commands in our ISeries
utilities library (click this URL for full contact and pricing
details).
You can use any single character to separate field values e.g.
a comma, the bar character '|' or the tab character. We use the term 'CSV' to
mean any of these.
Conversion of ISeries data from CSV typically occurs where data
must be imported from a non-DB/2 database. For example, via PC upload of
records exported as CSV from Microsoft Access or SQL Server. Some file upload
tools (like file transfer in Client Access or Rumba or Netsoft) will do
conversion from CSV as part of the upload, but this tends to be very slow.
Using PCPYFRMCSV, you upload the data as CSV plain
text with just a simple ASCII->EBCDIC conversion, then import from CSV
on the ISeries itself using PCPYFRMCSV. So the actual conversion 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 PCPYTOCSV
command for the reverse conversion to CSV.