Transfer
a database file, SQL result set, or IFS document, from the iSeries to the PC.
The PC file resulting from a database file or SQL result set transfer will be in text format.
Syntax
|
|
||||||||
|
|
||||||||
|
|
||||||||
|
|
Parameters
Parameters |
|
Parm1 |
Parm1
contains options that will be interpreted by LAUNCHER Office on the PC. File=Full
path to the resulting file to create on the PC. UNICODE=True /
False (Default=False). Fixed=True /
False (Default =False). FixedNL ColHdg=True /
False (Default =True). By default, the first line in the destination file
will contain the columns headings or names. Delimiter :
The default column delimiter is the semicolon (;). This delimiter can be
changed here. DecimalPt
:
The default decimal point will be the one defined in the Windows environment.
It can be changed here. QuoteText=True /
False (Default =True). The column values are between two double
quote characters. Set QuoteText to false to remove those double
quotes. DescFile=True /
False (Default =True). A description file (*.LFD) is generated
during the file transfer. This decription file is used by LAUNCHER Office
when exporting te data to Excel.
|
Parm2 |
Parm2 contains options interpreted by LAUNCHER Office on the AS/400. These
options must be at the beginning of Parm2, separated by semicolons ( ;).
The name of the AS/400 data source is at the end of Parm2. MAXREC=Number;
With this option, you can set the maximum number of record to transfer. By
default, there is no limit. COLHDG= LNAME / COLHDG
/ SNAME
Database
file name : Give here a database file name, with eventually
its library and member name. IFS
Document : Enter here the full path to the file in the IFS,
starting with keyword « DOCUMENT:» SQL
Result set : The keyword « SQL:» is followed by
the SQL statement.
|
RESULT |
On return, variable &RESULT contains the number of transferred records (9 digits).
|
This transfer function doesn’t require any other software than LAUNCHER installed on the PC.
To transfer a document from the IFS to the PC, you don’t need to connect a virtual drive to the IFS.
Note : .lfd file is also created.
Example
|
|
|||||||||||||||||||||||||||
|
|
|
|
|||||||||||||||||||||||||