| 1) |
The first member in the target ISeries file is
always used. This member is cleared (CLRPFM)
before the MSSQL database is accessed. If you want
more flexibility, use an intermediate empty copy
of the ISeries file then run your own selective
CPYF. |
| 2) |
The command parameters passed down to MSSQL
itself (MSDB, MSFIL, MSUSR, MSPWD, MSAPP) may be
case-sensitive. Confirm with your MSSQL
admininistrator the exact case for these
variables. |
| 3) |
Character fields in MSSQL - particulary 'Text'
fields - may be multiline e.g. have mutiple
address lines each usually terminated by the CR/LF
(CarriageReturn/LineFeed) combination of
characters. These two characters cause problems
with CSV import of data into your ISeries file.
Use the REPLACECR and REPLACELF parameters to
specify replacement characters. A null value
(X'00') means that PRTVMSF drops the character
altogether. |
| 4) |
The DTAFIL file must have the same number of
fields as the MSFIL table. Character fields in
DTAFIL may be shorter than their matching fields
in MSFIL - in which case excess RHS characters are
truncated. If you want to ignore a character field
in MSFIL, create a minimal 1A field equivalent in
DTAFIL. |
| 5) |
Conversion of data values in individual fields
is determined by the PCPYFRMCSV
command. See that command for restrictions. |
| 6) |
When PRTVMSF runs, two intermediate files are
used. A stream file is placed in the same
directory as prtvmsf.class. The name of this file
is xxx_nnnnnn_CSV where xxx is the value of the
MSFIL parameter and nnnnnn is the 6-digit number
of the ISeries job running the PRTVMSF command.
A database file is also created in the QTEMP
library of the ISeries job running the PRTVMSF
file. The name of this file is CSV_nnnnnn. This
file is created with the same SIZE() as DTAFIL. So
you should typically create DTAFIL with a SIZE()
that caters for the number of records you expect
to retrieve.
If the PRTVMSF command completes normally, both
these intermediate files are deleted. If these
files persist, it may indicate a problem that
you/we should investigate. |
| 7) |
When PRTVMSF runs, a spool file is created for
the execution of prtvmsf.class. This normally
contains one line 'Java program completed'. If
PRTVMSF completes normally, it deletes this spool
file. If the spool file persists, look at the
contents of the spool file to see if it indicates
a problem that you/we should investigate. |
| |
|