Run IBMi Access Client Data Xfers
Run IBMi Access Client Data Xfers
Data Transfers
on the IBM i
Craig Pelkie
[email protected]
Run IBM i Access Client Solutions Data Transfers on the IBM i
v1.01 2012-09-06 Initial version
v1.02 2012-11-12 Update for Oct. 2012 IBM release. Move VNC section to end of
document (no longer needed for initial configuration on IBM i), update several figures to
match Oct. 2012 version.
v1.03 2012-11-15 Update for Oct. 2012 IBM release. Move VNC section to end of
document (no longer needed for initial configuration on IBM i), update several figures to
match Oct. 2012 version. Revised the XFRDTAC program, XFRDTA command to include
the CLDOWNLOAD plugin option. Several updates to figures.
1
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
The XFRDTA command in operation ........................................................................................... 46
Parameters used with the XFRDTA command .............................................................................. 47
Check for, install the IBM Tools for Developers for i5/OS LPP (OBSOLETE) ......................................... 49
Use the Display Installed Licensed Programs program to check for the LPP ...................................... 49
Check for the vncserver_java file (5799PTL already installed) ........................................................ 50
Download the IBM Tools for Developers for i5/OS LPP .................................................................. 51
Install the IBM Tools for Developers for i5/OS LPP ....................................................................... 55
Work with the VNC Server........................................................................................................... 57
Check to see if the VNC server is already running ........................................................................ 58
What is the ps command and what do the gaxuw options mean? ................................................. 60
What does the grep command do? .......................................................................................... 61
Create the VNC password file .................................................................................................... 62
Create the VNC password ......................................................................................................... 64
Start the VNC sever — Initial Start ............................................................................................ 65
Verify that the VNC server is running ......................................................................................... 66
Stop the VNC server ................................................................................................................ 67
Review files that were created by starting the VNC server ............................................................. 68
Start the VNC Server — Production Start .................................................................................... 70
Working with the VNC sever in a production environment ........................................................... 70
Open firewall ports used by the VNC server ................................................................................ 71
Work with the VNC Viewer .......................................................................................................... 72
Start the Data Transfer program on the IBM i ................................................................................ 75
Check for environment variables ............................................................................................... 75
Remove environment variable(s) ............................................................................................... 76
Change environment variable(s)................................................................................................ 77
Add environment variables ....................................................................................................... 78
Start the Data Transfer program ............................................................................................... 79
2
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
About this document
This document describes how to run the IBM i Access Client Solutions Java–based data transfer program
on the IBM i.
Your IBM i server must be at OS/400 V5R4 or above to use the steps shown in
this document.
The IBM i Access Client Solutions (ACS) product is a new offering from IBM. It provides some of the
features of the traditional IBM i Access for Windows (5250 emulation, data transfer) in a Java
environment. Any client computer that has the Java 6 or Java 7 runtime environment can use the ACS
programs. For example, the program can be installed on a Macintosh computer or on a PC running Linux.
Because the product is entirely Java–based, it is also possible to run the Data Transfer features (file
download / file upload) on the IBM i. It is important to understand that installing and running the IBM i
Access Client Solutions product on the IBM i is not supported by IBM.
Installing and using the ACS data transfer components on the IBM i may be useful for some scenarios
where you need to extract data from the IBM i database into PC file formats, or where you need to upload
data from PC file formats to the IBM i database. By moving the data transfer components to the IBM i, you
can take advantage of the IBM i batch processes to run the data transfer programs. This may lessen the
need for creating and maintaining cumbersome PC–based data transfer mechanisms, which traditionally
use remote command features.
The PC format files that are produced (file download) or consumed (file upload) are located in the IBM i
IFS
After installing and configuring the ACS components on the IBM i, you can use a workstation–based
version of ACS to develop the data transfer applications. The outputs of the workstation development are
PC files that describe the data transfers. After creating and saving the description files on the workstation,
you copy the description files to the IBM i IFS. When you run the data transfer programs on the IBM i, you
reference the description files.
IMPORTANT
USE THE STEPS DESCRIBED IN THIS DOCUMENT AT YOUR OWN RISK.
IBM WILL NOT PROVIDE SUPPORT FOR THE STEPS DESCRIBED IN THIS DOCUMENT.
IF YOU ARE UNSURE ABOUT WHAT YOU ARE DOING, DO NOT CONTINUE. SEEK QUALIFIED HELP IF
NECESSARY.
BEFORE RUNNING THE PROGRAMS DESCRIBED IN THIS DOCUMENT, BE SURE YOU HAVE ADEQUATE
BACKUPS OF ALL IMPORTANT DATA THAT YOU ARE WORKING WITH.
IMPORTANT
3
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Why
At each major section of this document, you will see a heading labeled Why. Within that heading, there is
a brief description of why you need to perform the steps in the section.
Although it looks like performing all of the steps in this document will be a laborious task, you should be
able to complete all of the steps and have Data Transfer running on your IBM i within a few hours. By
explaining why you need to perform the steps shown in a section, you should have a better understanding
of what you are trying to accomplish within that section and how the steps fit in with the rest of the
procedures described in this document.
4
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
PC Prerequisites
Why y: To run the ACS code on your PCC, you need the Java 6 or higher ru
untime on your worksta ation. You
will rrun the ACS
S code on yo also to develop the Data
our PC to test the progrrams, and a a Transfer d
description
files.
___
___ Open the
e Command
d Prompt pro
ogram.
___
___ Enter the
e following command:
c
java -ve
ersion
___
___ If Java is
s installed on your work
kstation, you will see ou ar to what is
utput simila s shown in F
Figure 1.
iac090
___
___ If you do
o not get the
e expected output from
m the java ––version com mmand, or if the versio
on is lower
than 1.6, you need to downloadd and install the curren t version off Java.
Go to htttp://www.ja
ava.com and
d download the version
n for your wo s operating s
orkstation’s system.
5
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
IBM
M i Prer
requisite
es
Why y: To run the ACS code on the IBM M i, you needd the Java 6 or higher rruntime on the IBM i. Y
You need to
M Developerr Kit for Java (Licensed Program Prroduct [LPP]
veriffy that you have the correct featurre of the IBM
57xxx-JV1) installed on the IBM i.
___
___ On a 525
50 command entry disp
play, enter the
t comman
nd:
GO LICPGM
M
___
___ On the Work
W with Licensed Programs
P menu,
m enterr option 10, Display installed lice
ensed
programms.
___
___ Scroll through the list of installe
ed licensed programs u
until you locate the 57x
xxJV1 IBM Developer
r
Kit for Java.
J
___
___ Verify that LPP 57xx
x-JV1 optio
on 11 (Java SE 6 32 b bit) is installed (Figure 2) and/or L
LPP
57xx-JV V1 option 12
1 (Java SE
E 6 64 bit) (Figure 3) i s installed.
___
___ If neither of the Java SE 6 optio
ons are installed, you n
need to insta
all the LPP p
product options and
he current PT
install th TFs before continuing.
c
iac091
6
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
iac092
7
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Download and ins
stall IBM
M i Acce
ess Clien
nt Soluttions
Whyy: You need to get the IBM i Access Client Solutions code to complette the steps shown in th
his
docu
ument.
At th
he time this document was
w prepare ed, the IBM i Access Cliient Solutions licensed program prroduct
(57333-XJ1) wass available fo
or download
d from IBM’s
s web site. TThe download that was s available w
was a “beta”
”
version of the product.
p
Dow
wnload th
he software
___
___ Go to the
e following URL:
http://www-03.ibm..com/system
ms/power/software/i/acccess/solutions.html
___
___ On the web
w page, cllick the Dow
wnload the
e technolog
gy preview
w link as sho
own in Figurre 4.
iac001v2
Figurre 4: Downloa
ad the IBM i Access
A Clientt Solutions prroduct from tthe IBM site ((screen grab:: 2012-11-14
4).
8
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ You are prompted too enter yourr IBM ID and password (Figure 5). If you do n
not have an IBM ID,
you can register and
d create an ID on this page.
p
Note: doo not enterr your IBM i user ID and
d password.. The IBM ID
D and passw
word is an ID
D that is
used to access
a IBM web pages.
iac002
___
___ After enttering your ID and passsword, you are
a asked to
o confirm pe
ersonal info
ormation and
d accept the
e
license agreement
a (Figure 6).
iac003
9
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ The IBM i Access Cliient Solution
ns download
d page show
wn in Figure
e 7 is display
yed.
There arre two techn
niques you can
c use to download
d the
e software:
HTTP
P — this use
es the tradittional brows
ser–based d
download prrocess.
___
___ If you wa
ant to use the Downloa n the next section.
ad Director, use the ste ps shown in
___
___ If you wa
ant to use HTTP,
H use th
he steps sho
own starting
g on page 12.
Dow
wnload usin
ng the Dow
wnload Dire
ector
___
___ Select bo
oth files for download and
a click the d now link, as shown in Figure 7.
e Download
iac004v2
10
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ The conffirmation dia
alog shown in Figure 8 is displayed
d. Click the Run button
n to continue
e.
iac005
___
___ If the Inttial Setup dialog is disp
played (Figure 9), enterr the directo
ory on your PC where y
you want the
e
files dow
wnloaded to,, then click the
t OK buttton.
iac006
___
___ The Dow
wnload Direc
ctor progress dialog is displayed
d wh
hile the dow
wnload is in progress (F
Figure 10).
iac007v2
___
___ Go to Ex
xtract the downloade
d ed files on page
p 13 to ccontinue insstalling ACS on the workstation.
11
1
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Dow
wnload usin
ng HTTP
___
___ If you do
o not want to
t use the Download
D Director, click
k the Download using
g http tab as shown in
Figure 11.
___
___ Click the
e Download
d now link for
f both of the
t files.
iac011v2
___
___ In the File Download
d dialog (Fig
gure 12), cliick the Save
e button. Sa
ave the ACS
S files to a d
directory on
your PC.
iac012
12
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Exttract the downloaded files
Why
y: The code that you do
ownload is in a ZIP file. You need tto extract th
he files from
m the ZIP.
___
___ Go to the
e directory where
w you download
d th
he ACS code e. Figure 13 shows the .txt and th
he .zip file
that were downloaded. (The dlm mgr.pro file is only pres
sent if you u
used the Do
ownload Dire
ector. If youu
e HTTP down
used the nload, the file will not be
b present. IIt is not nee
eded and may be deleteed.)
iac021v2
___
___ Extract all
a of the file es from the IBMiAccess_ _v1r1.zip fille. You can extract the files to the same
directory
y that you downloaded the files to, or to anoth her directoryy on your wworkstation. Figure 14
shows alll of the files
s in the zip, extracted to
t the same directory w where the files were dow wnloaded.
iac022
13
3
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Why
y: You need to run a Da
ata Transferr download on your worrkstation to verify that the code works.
Befoore installing
g the ACS co
ode on the IBM
I i, you should
s test it on your w
workstation. For this tes
st, you will
startt ACS and perform
p ata Transferr download (data will be
a Da e transferre
ed from an IIBM i databa
ase file to a
file o
on your worrkstation).
Start the AC
CS progra
am
You can start th
he ACS prog
gram using either
e a starrtup program
m provided by IBM, or by running a startup
scrip
pt provided by IBM.
___
___ Go to the
e directory where
w you extracted
e th
he download
ded file.
___
___ In the St
tart_Programms directory
y, open the subdirectory
s y for the wo
orkstation op
perating sys
stem that
you are using, as sh
hown in Figuure 15.
___
___ In the su
ubdirectory, run the exe
ecutable pro
ogram to sta
art the ACS
S program.
iac031
14
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Starrt using a startup
s scr
ript
___
___ Go to the
e directory where
w you extracted
e th
he download
ded file.
___
___ In the St
tart_Scripts directory, open the su
ubdirectory for the worrkstation operating systtem that
you are using, as sh
hown in Figu
ure 16.
___
___ In the su
ubdirectory, run the scrript to start the ACS pro
ogram.
iac032
___
___ The ACS program sttarts. While starting, yo
ou will see tthe Workingg panel sho
own in Figurre 17. The
e displayed in
message i the panell changes as s the progra am is loaded
d.
iac035
15
5
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Run
n the Datta Transfer with Display
D ou
utput
___
___ The IBM
M i Access Client
C Soluttions dialog
g is displaye
ed, as shown in Figure 18.
___
___ In the General secttion, click th
he Data Tra
ansfer item .
iac041v2
iac042
16
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Enter the
e following items
i in the
e Data Trans
sfer dialog:
System (e
enter your IBM i TCP/IP
P host name
e or IP addre
ess)
File nam
me qi
iws/qcustcdt
Output device
d Display
___
___ Click the
e Start Tran
nsfer button
n.
___
___ The Sign
non to IBM M i dialog shown in Figure 20 is disp
played. Ente
er your IBM
M i user ID and
password
d, then click
k the OK buutton.
iac043
___
___ The dataa transfer ru
uns. It displa
ays the outp n Figure 21. When done viewing th
put shown in he output,
close the
e output display panel.
iac044v2
17
7
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Run
n the Datta Transfer with File
F outpu
ut
Whyy: You need to test the Data Transsfer downloaad with outp
put to a CSV
V file. This s
step shows y
you how to
use the Data Trransfer program to conffigure a dow
wnload requ est.
___
___ When yo play panel you are returrned to the Data Transfer dialog..
ou close the output disp
___
___ Change the
t Outputt device selection to File and click
k the Details button, as
s shown in F
Figure 22.
iac051
___
___ The File Details dia
alog shown in Figure 23 ed. Select Comma Sep
3 is displaye parated Vallues (.csv)
as the fille type.
iac052v2
18
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ In the Fiile Details dialog, chec
ck the Save
e client file descriptioon checkbox
x and enter the path
and file name
n for the Client file
e description file, as shown in Figure 24.
Note: a directory na amed IACXFER is used to contain th he file descrription file and transfer description
file (whic
ch will be crreated later)). You can create
c and u
use that direectory name e or you can
n use
another directory na ame on your workstatio on.
___
___ Click the e File Details dialog.
e OK button to close the
iac053v2
___
___ On the Data
D Transffer dialog, enter
e ath and file name for th
the pa he File nam
me, as shown in Figure
25.
Note: a directory na amed IACOUT T is used to contain the
e file descrip
ption file and transfer d
description
file (whic
ch will be crreated later)). You can create
c and uuse that direectory name e or anotherr directory
on your workstation n.
___
___ Click the
e Start Tran
nsfer button
n to run the
e data transffer.
iac054
4
___
___ Click the
e OK button to close the
e Inquiry Message.
M
iac055
___
___ On your workstation
n, go to the directory where
w the ou
utput file (th
he .csv file) was created. Figure 27
7
shows th
he qcustcdt.csv file in the
t UT directory .
c:\IACOU
iac056v2
20
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Open thee qcustcdt.ccsv file. Figu
ure 28 show
ws the file op
pened in Microsoft Exce
el. If you do
o not have
Excel ins
stalled on yo
our workstation, open the
t .csv file in a text ed
ditor.
___
___ When do
one reviewin
ng the .csv file, close th
he program that you ussed to view it.
iac057
21
1
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Sav
ve the Da
ata Transfer down
nload request
___
___ Go back to the Data
a Transfer dialog (it sh
hould still be
e open, with
h the values
s set to dow
wnload to
the .csv file).
___
___ Select th
he File, Sav
ve As menu item, as sh
hown in Figu
ure 29.
iac061
___
___ In the Sa
ave dialog (Figure
( 30),, navigate to
o the c:\IAC
CXFER directo
ory.
___
___ Save the
e transfer de
escription fille as qcustc
cdt.dtfx.
iac062
___
___ You are returned to the Data Transfer
T dia
alog.
___
___ Close the
e Data Tran
nsfer dialog
g.
___
___ Close the
e IBM i Acc
cess Client Solutions dialog.
22
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Run the Data Tran
nsfer fro
om a co
ommand
d line
Why y: These steeps use the saved data transfer req
quest with a Java comm
mand line. T
This is the te
echnique
that you will use
e when you run the Data Transfer on the IBM i.
At th
his point, yo
ou have insttalled the IB
BM i Access Client Soluttions program on your w workstation. You have
teste
ed the Data Transfer do ownload fea ature to dow
wnload a .cs e workstation. You have
sv file to the e also saved
d
the d
data transfeer descriptio
on file (.dtfx
x).
In th
his section, you will run
n the Data Transfer
T from
m a Java co mmand line e, you will not use the D
Data
Trannsfer GUI. The Data Tra ansfer uses the
t .dtfx fille that you s
saved in the
e previous ssection.
___
___ Open a Command
C Prompt
P program on your workstatio
on.
___
___ Enter the
e following command
c in
n the Comm
mand Promptt window, as shown in Figure 31.
Note
e: the values s that you enter
e (other than drive letter and d
directory names) are ca
ase–
sensiitive. Be surre that you enter the va
alues as sho
own here.
Notee: if you created different directory
y names (IA C, IACXFER) substitute tthe directory
y names
that you
y created
d.
Note
e: enter the java command line on the same liine, as show
wn in the fig
gure. The co
ommand is
wrapped in this document.
d
java
a -jar c:\IAC\a
acsbundle
e.jar /PLUGIN=d
download
/file=c:\IACXFER
R\qcustcd
dt.dtfx
iac071v2
23
3
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ The first time you ru
un the java command line Data Tra ansfer, you will be prom
mpted to en
nter your
IBM i useer ID and pa
assword, ass shown in Figure
F 32. N
Note: you mmay be prom mpted twice for your
user ID and
a password.
iac072v2
___
___ The Data
a Transfer program
p runs. The output of the prrogram is sh
hown in Figu
ure 33.
iac073v2
24
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Ins
stall the
e IBM i Access
A Client
C Solutions
s progra
am on tthe IBM i
Why
y: You need to install th
he code thatt you downlload onto yo
our IBM i to run the Data Transfer..
his section, you will insttall the IBM i Access Client Solutio ns program on the IBM
In th M i. You will copy files
from
m your works station to directories in
n the IFS.
The steps shown in this sec o work with the IFS. If you prefer another
ction use the System i Navigator to
technique to acc
cess and woork with the
e IFS, you do System i Navigator.
o not have tto use the S
Cre
eate direc
ctories in
n the Root file system
___
___ In the Sy
ystem i Nav
vigator program, expand the File S em, then Integrated F
Systems ite File
System,, then Roott.
___
___ Right-clic
ck the Roott item and select
s the New Folder item in the pop-up me
enu, as show
wn in Figure
34.
iac101
25
5
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Create th
he following
g three direc
ctories in the
e Root file ssystem:
Directory Used
d For
IAC
Conta
ains the ACSS program, copied from m your
works
station (insttructions sh own below)).
IACOUT
Direc
ctory where the output from a Data
a Transfer
(download) is wrritten to.
IACXFER
Direc
ctory where the data tra
ansfer descrription files that
you create
c on yo
our workstattion will be located.
___
___ When do one, verify that the Root
t file system
m directory ccontains the
e three subd
directories, as shown in
n
Figure 35
5.
iac102
Cop
py the AC
CS code from your
r worksta
ation to tthe /IAC directory
y
___
___ On your workstation
n, navigate to
t the \IAC directory (tthe directory
y where the
e ACS code iis installed).
___
___ Select th
he acsbundle
e.jar file an
nd the AcsCo rties file.
onfig.proper
Note: yo
ou can selec
ct and copy the files one at a time if you prefe
er.
___
___ Right-clic
ck and selec
ct the Copy
y item from the pop-up menu, as sshown in Fig
gure 36.
iac111
26
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Go back to the System i Naviga
ator. Right-c
click the IAC
C directory in
n the Root ffile system, then select
the Pastte item from
m the pop-up menu as shown
s in Fig
gure 37.
iac112
___
___ Wait for the file copy
y to comple
ete.
___
___ Verify that the two files
f are in the
t IAC direc
ctory, as sh own in Figu
ure 38. If yo
ou do not se
ee the files,
he steps sho
repeat th own above.
iac113
27
7
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Cha
ange th
he directtories in
n the saved tran
nsfer de
escriptio
on file
Whyy: The saved d transfer description file on your workstation
w n points to d
directories on the works station. To
use the transferr description
n on the IBM
M i, you neeed to change
e the directoories to dire
ectories thatt are in the
IBM i IFS.
___
___ On your workstation
n, go to the IACXFER dire
ectory.
___
___ In the directory, right click the qucstcdt.dt
tfx file (you
u saved the file in the section Save
e the Data
Transfer download d request ono page 22)).
___
___ Select th
he Open item from the pop-up menu, as show
wn in Figure 39.
iac121
___
___ The file should
s openn in Notepad
d. If the Ope
en with dia alog is displa
ayed as sho
own in Figurre 40, selectt
Notepad d as the pro
ogram to be used to open the file.
iac122
28
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ The qucs
stcdt.dtfx file
f is opened in Notepad (Figure 41
1).
iac123
29
9
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Before making
m any changes,
c usse the File, Save As m menu item to o save the fiile as xqcust
tcdt.dtfx.
By saving the file wiith a new na
ame, you re etain the original file on
n your works station.
Note: when you use e the File, Save
S As item
m in Notepadd, change th he Save as type to Alll Files
(*.*). Iff you do sett the Save as
a type to that
t option, the file is ssaved with a .txt exten
nsion.
___
___ Make the
e following changes
c to the
t values shown
s in the
e file:
Iden
ntifier New Value
e
ClientFile /IACOUT/qcu
ustcdt.csv
FDFFile /IACXFER/qc
custcdt.fdfx
x
___
___ When do
one, verify that the valu
ues that are
e in the file a
are as show
wn in Figure 42.
iac124
4
___
___ Save the
e file after making
m the changes.
c
___
___ Close No
otepad.
30
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Cop
py the Data
D Tra
ansfer descript
d ion files
s to the IBM i IFS
Why y: When youu run the Da
ata Transferr program on
o the IBM i,, it will use the Data Trransfer desc
cription file
that you modifie
ed.
___
___ On your workstation
n, navigate to XFER directo ry.
t the \IACX
___
___ Select th
he qcustcdt.
.fdfx and xq tfx files, righ
qcustcdt.dt ht-click, and
d select the Copy item from the
pop-up menu,
m as sh
hown in Figu
ure 43.
iac131
___
___ Go go th
he System i Navigator.
___
___ Right-clic
ck the IACXF
FER directory
y and selectt the Paste item from tthe pop-up menu.
___
___ When the copy is do
one, verify that
t the two
o files are in the directo
ory, as show
wn in Figure 44.
iac132
31
1
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Start the Da
ata Trans
sfer progr
ram
Whyy: You can now
n run the
e Data Trans
sfer program
m. For the first test, you
u will run th
he java com
mmand in the
e
QSH
HELL environnment.
___
___ On a 525
50 command line, enter the QSH (S
Start QSHEL L) command
d.
___
___ The QSH
H Command Entry panel is displaye
ed.
___
___ Enter the
e following command
c on the QSH Command
C E
Entry line.
Note: th
he data transfer runs with the auth
hority of the user profile
e of the inte
eractive sess
sion.
Note: th
he command
d is case–se
ensitive, enter it as sh
hown.
Note: th
he value for the os400.c heck parame
class.path.security.ch eter is zero, not the lettter “O”.
java –jar /I
IAC/acsbu
undle.jar
r -Dos40
00.class.
.path.sec
curity.ch
heck=0
/PL
LUGIN=dow
wnload /file=/IA
/ ACXFER/xq
qcustcdt.
.dtfx
___
___ The Data
a Transfer program
p runs. The messsages show n in Figure 45 are displayed when the
program ends. It may
m more thhan a minu ute or longe
er before yo
ou see any o
output. Let the
m run beforre doing any
program ything else on
o the QSH Command Entry panel.
___
___ Press the
e F3 (Exit) function
f key
y to close th
he QSH Com
mmand Entry
y panel.
iac235v2
32
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ In the Sy
ystem i Nav
vigator, go to the output directory tthat you speecified (see the ClientF
File item in
n
Figure 42
2 on page 30).
3 In this example,
e th
he output dirrectory is IF
FS directory /IACOUT.
___
___ The qcus
stcdt.csv file is the output from the Data Tran
nsfer progra
am.
___
___ Copy the
e qcustcdt.c
csv file to yo
our workstation and op
pen it. You sshould see the same output as you
saw wheen you ran the Data Tra ansfer on yo
our workstattion, as show e 28 on pag
wn in Figure ge 21.
iac236
Disc
cussion
Part of the reason why the program ta
akes so long to respond d is because it incurs the overhead of starting
the JJava runtime environment. For sm
mall data tran h as shown in this exam
nsfers, such mple, the tim
me to
transsfer the records is exce
essive.
On a test system m, a file con 83 rows, witth 53 fields and a recorrd length of 290, was downloaded
ntaining 648
to a .csv file in 70 seconds,, for a rate of
o 92.6 reco
ords per seccond.
33
3
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Run the Data Tran
nsfer pr
rogram from a 5250 co
ommand
d line
Whyy: Although you can go into the QS SH Comman nd Entry pannel and run the java co
ommand to iinvoke the
a Transfer, it is more lik
Data kely that you will want to run Dataa Transfers u
using IBM i commands.. When you
use commands, you can em mbed Data Transfer
T witthin CL prog
grams or youu can submit the Data T
Transfer
requ
uest to batch
h. You can use
u either th he QSH comm mand or thee RUNJVA commmand to innvoke the D
Data
Tran
nsfer program.
Use
e the QSH
H comma
and to inv
voke the Data Tra
ansfer
Whyy: In the pre
evious section, you wen
nt into the QSH
Q Comma and Entry panel to run the java co
ommand.
You can pass th
he java command as a parameter
p to
t the QSH co
ommand.
___
___ On a 525
50 command line, enter the QSH command and
d press F4 tto prompt fo
or its param
meters.
___
___ For the CMD
C parametter value, en
nter the com
mplete java command sstring that y
you previous
sly entered
on the QSH
Q Command Entry pa anel, as show
wn in Figure
e 47.
iac261v2
___
___ Press En
nter after yo
ou enter the
e complete java
j comma
and string.
34
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ A shell environmentt panel open
ns to display
y the messa
ages sent fro
om the Data
a Transfer p
program, as
shown inn Figure 48.
___
___ Press En
nter to close
e the shell environment
e t panel.
iac262v2
35
5
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Use
e the RUN
NJVA com
mmand to
o invoke the Data Transferr
___
___ On the Run
R Java Program com
mmand prom
mpt panel, enter the fo
ollowing valu
ues for the parameters,
as shown
n in Figure 49:
4
Para
ameter Nam
me Value
CLASS ꞌ/IAC/acsb
bundle.jarꞌ
iac271v2
___
___ Press the
e F10 key to display ad
dditional parrameters for the RUNJVA
A command..
36
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ On the second param
meter panel, enter the value *IGNO
ORE for the C
CHKPATH para
ameter, as s
shown in
Figure 50
0.
iac272v2
___
___ Press En
nter to run the
t RUNJVA command
c with
w the para
ameter values that you entered.
___
___ The Java
a Shell Displlay panel sh
hown in Figu
ure 51 is dissplayed. It d
displays the messages w
when the
Data Tra
ansfer program runs.
___
___ Press the
e Enter key
y to close the Java Shell Display an
nd return to the 5250 command display.
iac273v2
___
___ Enter the
e RUNJVA commmand from
m a 5250 co
ommand pro
ompt and en
nter the parrameter valu
ues that you
u
previously entered.
___
___ Press the
e F10 key to display all parameterrs for the co
ommand.
___
___ Roll forw
ward in the command
c prrompter to the
t 4th prom
mpt panel, sshown in Fig
gure 52.
___
___ The values that you can enter for
f the OUTPU
UT paramete
er are:
* — outpu
ut is display
yed in the Ja
ava Shell Display
Dest
tination *PRINT — output is se
ent to a spo
ool file
*NONE — output
o is no
ot displayed or spooled
*PAUSE — the Java Sh
hell Display remains op
pen until
you close it
Prog
gram end action
E — the Java
*CONTINUE a Shell Disp
play closes
automatic
cally
iac274
4
38
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Submit a Data Transfer request to batch
Why: You can run a Data Transfer request as a batch job. By moving the request to batch, you make it
easier to create automated Data Transfer requests.
Note: the JOB, LOG and LOGCLPGM parameter values are optional, you do not need to enter values for those
parameters.
Note: the JOB, LOG and LOGCLPGM parameter values are optional, you do not need to enter values for those
parameters.
39
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
The Command Line Download option
Why: If you want to download all of the records and all fields in a database file to a stream file, you can
use the Command Line Download plugin. You do not have to specify a .dtfx file (data transfer description
file) with this plugin.
In addition to the download and upload plugin types, IBM provides the cldownload plugin. The
cldownload plugin provides a simplified way to download data from an IBM i database file to a stream file.
Because the cldownload plugin downloads all of the rows and fields that are in the database file, there is
no need to specify a data transfer description file (.dtfx).
The /system parameter value is set to the name of the IBM i system where the database file is located.
When you run the cldownload plugin on the IBM i, you can specify the system name LOCALHOST to
download a database file from the system where the plugin is running.
The /hostfile parameter is used to specify the qualified name (system format) of the database file to
download from. If you need to specify a member name, enclose the name in parentheses.
The /clientfile parameter specifies the complete path, file name and extension of the stream file that is
created as a result of the download. The file extension is used to determine the type of transfer to
perform. For example, if the file extension .xlsx is specified, an Excel 2007/2010 file is created.
40
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Create and work with the XFRDTA command
Why: The Transfer Data (XFRDTA) command provides a simplified way to invoke the Data Transfer
program.
Why: The XFRDTAC CL program is the Command Processing Program for the XFRDTA command.
http://www.web400.com/downloads/ACS/xfrdta.clp.txt
********************************************************************/
/* Program XFRDTAC */
/* Run the IBM i Access Client Solutions Data Transfer program */
/********************************************************************/
/* */
/* Copyright 2012, Craig Pelkie, ALL RIGHTS RESERVED */
/* [email protected] */
/* */
/* V1.01 - 2012-08-28 ORIGINAL VERSION */
/* V1.03 - 2012-11-14 UPDATE FOR OCT. 2012 ACSBUNDLE.JAR */
/* */
/********************************************************************/
/* You may freely make use of this program in any application that */
/* you develop, as long as you retain the copyright notice shown */
/* above. */
/* */
/* This program is provided for instructional purposes only. */
/* No warranty is expressed or implied. */
/* */
/* Craig Pelkie explicitly disclaims all responsibilty for your */
/* use of the program, and will not be held liable for any */
/* results or unforeseen consequences that result from your */
/* use of this program or any of the techniques that are */
/* demonstrated by this program. */
/* */
/* By using this program, you acknowledge that: */
/* */
/* 1. The techniques shown in this program have not been */
/* tested, documented, approved, or recommended by */
/* IBM. You should not expect any IBM support for */
/* the techniques shown in this program. */
/* */
/* 2. Running this program may result in changes to files */
/* on your system. The expected outputs include the */
/* data transfer output file in your IBM i IFS, and */
/* possibly one or more job log files. It is your */
/* responsibility to verify the outputs of running the */
/* program, and to ascertain that no other unwanted or */
/* unexpected changes occur on your IBM i as a result */
/* of running this program. */
/* */
/* 3. No support from Craig Pelkie is expressed or implied */
/* in the provision of this program and its accompanying */
/* documentation, if any. */
/* */
/* 4. If you do not understand how to use this program and */
/* the potential consequences of running it, DO NOT RUN IT. */
/********************************************************************/
41
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
/*******************************************************/
/* The path, file name and extension of the stream */
/* file to transfer data to. */
/* */
/* This is only used with &direction CLDOWNLOAD */
/* (Command Line Download) */
/* */
/* Supported extensions: */
/* */
/* .csv - Comma Separated Variable */
/* .ods - Open Document Spreadsheet */
/* .xls - Microsoft Excel 97 - 2003 */
/* .xlsx - Microsoft Excel 2007, 2010 */
/* */
/* If an unsupported extension is specified, the */
/* default extension .csv is used. */
/*******************************************************/
dcl &clientFile *char 256
/*******************************************************/
/* The qualified name of the IBM i database file to */
/* transfer data from. This is only used with */
/* &plugin value *CLDOWNLOAD (Command Line Download) */
/*******************************************************/
dcl &file *char 20
/*******************************************************/
/* The IFS directory where the acsbundle.jar file */
/* is located */
/*******************************************************/
dcl &jardir *char 256
/*******************************************************/
/* The member in the IBM i database file to */
/* transfer data from. This is only used with */
/* &plugin value *CLDOWNLOAD (Command Line Download) */
/*******************************************************/
dcl &mbr *char 10
/*******************************************************/
/* The plugin to use for the transfer. */
/* */
/* *DOWNLOAD - transfer data from an IBM i database */
/* file to a stream file */
/* */
/* *CLDOWNLOAD - transfer the entire IBM i database */
/* file to a stream file */
/* */
/* *UPLOAD - transfer data from a stream file to */
/* an IBM i database file */
/*******************************************************/
dcl &plugin *char 11
/*******************************************************/
/* Variable used to set the value of the CLASS parm */
/* &jardir/acsbundle.jar */
/*******************************************************/
dcl &valCLASS *char 270
/*******************************************************/
/* Variable used to set the value of the /file parm */
/* /file=<filename> */
/*******************************************************/
dcl &valfile *char 262
/*******************************************************/
/* Variable used to set the value of the client file. */
/* clientfile=<filename> */
/*******************************************************/
dcl &valCfile *char 268
/*******************************************************/
/* Variable used to set the value of the host file/lib */
/* hostfile=<library>/<file> */
/* hostifle=<library>/<file>(<member>) */
/*******************************************************/
dcl &valHfile *char 43
(continues)
42
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
/*******************************************************/
/* Variable used to set the value of the /PLUGIN parm */
/*******************************************************/
dcl &valPLUGIN *char 18
/*******************************************************/
/* Variable used to set the value of the /system parm */
/* Used only with cldownload plugin */
/*******************************************************/
dcl &valSystem *char 17 +
value('/system=LOCALHOST')
/*******************************************************/
/* The path (directory) and file name of the transfer */
/* description file */
/* */
/* Example: file for upload */
/* .dttx = "transfer to IBM i" */
/* */
/* /path/upload_description.dttx */
/* */
/* Example: file for download */
/* .dtfx = "transfer from IBM i" */
/* */
/* /path/download_description.dtfx */
/* */
/*******************************************************/
dcl &xfrdsc *char 256
/*******************************************************/
/* Set the parameter values to pass to the data */
/* transfer program */
/*******************************************************/
chgvar var(&valCLASS) +
value(&jardir *tcat '/acsbundle.jar')
/*******************************************************/
/* Set values for cldownload (Command Line Download) */
/*******************************************************/
if (&plugin *eq '*CLDOWNLOAD') then(do)
chgvar var(&valPLUGIN) +
value('/PLUGIN=cldownload')
chgvar var(&valHfile) +
value('/hostfile=' *tcat +
%sst(&file 11 10) *tcat +
'/' *tcat +
%sst(&file 1 10))
enddo
/*******************************************************/
/* Set values for download / upload */
/*******************************************************/
if (&plugin *eq '*DOWNLOAD') then(do)
chgvar var(&valPLUGIN) +
value('/PLUGIN=download')
enddo
chgvar var(&valfile) +
value('/file=' *tcat &xfrdsc)
enddo
(continues)
43
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
/*******************************************************/
/* Run the data transfer */
/*******************************************************/
if (&plugin *eq '*CLDOWNLOAD') then(do)
runjva class(&valCLASS) +
parm(&valPLUGIN &valSystem &valHfile &valCfile) +
chkpath(*IGNORE)
monmsg msgid(CPF0000)
enddo
else cmd(do)
runjva class(&valCLASS) +
parm(&valPLUGIN &valfile) +
chkpath(*IGNORE)
monmsg msgid(CPF0000)
enddo
endpgm
44
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Review and create the XFRDTA command
Why: The XFRDTA command can be used to run the Data Transfer program (XFRDTAC).
http://www.web400.com/downloads/ACS/xfrdta.cmd.txt
/********************************************************************/
/* Command XFRDTA - transfer data using download/upload */
/* */
/* Copyright 2012, Craig Pelkie, ALL RIGHTS RESERVED */
/********************************************************************/
XFRDTA: CMD PROMPT('Transfer Data')
PARM KWD(JARDIR) TYPE(*PNAME) LEN(256) MIN(1) +
VARY(*NO) CASE(*MIXED) PROMPT('Directory +
for acsbundle.jar')
45
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
The
e XFRDTA
A command in ope
eration
Figure 53 showss the Transffer Data (XFRDTA) comm
mand in the command p prompter. This is the co
ommand
prom
mpter displa
ay for when the PLUGIN parameter value
v is *DOW
WNLOAD or *U
UPLOAD.
iac281v2
iac282v2
The parameters used with the Transfer Data command are described below.
The following parameter is used when the value of the PLUGIN parameter is *DOWNLOAD or
*UPLOAD.
The following parameters are used when the value of the PLUGIN parameter is *CLDOWNLOAD.
FILE Qualified name of an IBM i database This is the name of the database file
file that is to be downloaded. The entire
content of the file is download (all rows,
all fields).
47
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
48
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Che
eck for,, install the IBM
M Tools for Dev
velopers
s for i5/
/OS LPP
(OB
BSOLETTE)
Use
e the Disp
play Insttalled Lice
ensed Pr
rograms p
program to check
k for the L
LPP
Why
y: You can check
c to see
e if the LPP is already in
nstalled on y
your system
m.
GO LICPGM
M
___
___ On the Work
W with Licensed Programs
P menu,
m enterr option 10, Display installed lice
ensed
programms.
___
___ When the Display Installed
I Licensed Prrograms pa
anel is displa
ayed, scroll through the
e list of
installed programs. Look for Lic
censed Program 5799P
PTL IBM To ools for Dev velopers foor i5/OS as
s
shown inn Figure 55.
Note: th
he 5799PTL LPP is not distributed
d with
w the ope erating syste
em, so if yo
ou did not ha
ave a
previous reason to work
w with th
he tools, it is unlikely th your system.
hat the LPP will be on y
iac141
49
9
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ If the LPP is not insttalled on your IBM i, co
ontinue with the steps in the sectio
on Downloa
ad the IBM
Tools foor Develope ers for i5/OOS LPP on page 51.
___
___ If the LPP is installed on your IB
BM i, continue with the steps in the next section to verify
y that you
have thee current version of the tools.
Che
eck for th
he vncser
rver_java
a file (5799PTL allready ins
stalled)
Why y: If you alrready have the
t 5799PTLL LPP installled on your system, you need to verify that th
he version
that is installed includes the Virtual Ne
etwork Comp puting (VNCC) server, w
which is used
d when you run the
Java
a–based Datta Transfer on o your IBM M i.
___
___ Navigate
e to the follo
owing directtory in your IBM i IFS:
/QOpenSys
s/QIBM/ProdDa
ata/Developer
rTools/vnc
___
___ In that directory,
d loo
ok for the vncserver_ja
ava file, as s
shown in Fig
gure 56.
iac142
___
___ If the file
e is not in th
he directory
y, you need to download d the currennt version of the IBM TTools for
Develop pers for i5/ /OS LPP. Usse the steps
s in the nextt section to download aand install th
he current
version.
___
___ If the file
e is in the directory, go to the secttion Work w
with the VN
NC Server o
on page 57 and
continue e with the stteps in that section.
50
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Dow
wnload th
he IBM Tools
T for Develope
ers for i5 /OS LPP
___
___ The IBM
M Tools for Developer rs for i5/OS S LPP is disttributed as a ZIP file th
hat contains a save file
image an
nd a readme.txt file of instructions
i . To obtain the ZIP file,, navigate too the follow
wing URL:
http://www14.softw
ware.ibm.com
m/webapp/d
download/se
earch.jsp?rss=iseriest
___
___ You shou
uld a web pa
age similar to what is shown
s in Fig
gure 57 (scrreen capture
e taken on 2
2012-09-
03).
___
___ If you do
o not see a web
w page th
hat includes
s a link to do
ownload the
e Tools for Developerrs, go to the
e
main IBMM web site (http://www
( w.ibm.com) and enter t he search teerm 5799PTLL. From the results
page, naavigate to th
he downloadd page.
___
___ Click the
e link (on the
e page, it is
s labeled iSe
eries Tools
s for Develo
opers).
Note: th
he Version shown on the page is V5
5R4M0. Thiss download is also used
d for later re
eleases
(V6R1M00 and V7R1M M0 when this document was prepa
ared).
iac151
51
1
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ The nextt page that is displayed
d is shown in
n Figure 58.. Click the C
Continue lin
nk.
iac152
___
___ You are prompted too enter yourr IBM User ID
I and Passsword, as shhown in Figu ure 59. If yo
ou do not
have an IBM User IDD, you can click
c the reg
gister here
e link on thiss page to crreate an ID. There is no
o
charge to
o create and
d use your ID
I for the purposes of tthis downloa ad.
iac153
52
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ After enttering your IBM user ID
D and passw
word, you arre taken to a page that asks you fo
or some
informattion, shown in Figure 60
0.
You are required to click the I agree
a check
kbox on thiss page to co
ontinue, the
en click the I confirm
link.
iac154
4
53
3
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ You are taken
t to the
e download page, show
wn in Figure 61. You can
n use eitherr the Downlo
oad Directorr
or Download using HTTP
H to dow
wnload the ZIP
Z files.
See the previous de
escription for the downlo
oad optionss:
Download
D using
u the Download
D Director
D on
n page 10
Download
D using
u HTTP
P on page 12
2
___
___ Download the ZIP file to a direc ur workstati on.
ctory on you
iac155
54
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Ins
stall the IBM
I Tools
s for Dev
velopers for
f i5/OS
S LPP
___
___ On your workstation t the directory where you downlo
n, navigate to oaded the ZIIP file for th
he IBM
Tools fo
or Developeers for i5/OOS (file nam
me q5799ptl p).
l_v5r4m0.zip
___
___ Extract all
a of the file
es from the ZIP into a directory.
d Yo
ou can extra
act the files into the sam
me
directory
y where the ZIP file is lo
ocated.
___
___ Verify that the list of
o extracted files looks like the list sshown in Fig
gure 62.
he dlmgr.pro
Note: th o file is pres
sent only if you
y used th e Download
d Director. T
The file is no
ot needed
and mayy be delete.
iac161
55
5
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Open the
e readme.txt
t file. The contents of the
t file are sshown in Fig
gure 63.
___
___ Follow th
he steps tha
at are descriibed in the readme.txt
r ffile to perform the follo
owing:
Creatte save file QGPL/Q5799P
PTL on your IBM i
FTP the
t save file
e image (q57 m0.savf) to the save file
799ptl_v5r4m
Insta
all the 5799P
PTL LPP from
m the save file
f
iac162
___
___ After you
u complete the
t RSTLICPGM step, use
e the steps sshown in th
he section Use the Disp play
Installe
ed Licensed d Programs s program to check fo or the LPP on page 49 9. Verify tha
at the
5799PTL L LPP is insta
alled, as sho
own in Figurre 55 on pagge 49.
56
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Work with the VNC Server
Why:
The IBM i Access Client Solutions product is designed to be used in a workstation environment, which
provides a graphical user interface (GUI). When you run the ACS programs, the Java code in the product
displays status messages and dialogs using Java GUI features.
When you run the ACS Data Transfer program on the IBM i, there is no support for the Java GUI. If you
simply try to run the Data Transfer program on the IBM i, it ends in error.
In some cases, you can run Java code on the IBM i and indicate that you do not want to use the GUI. That
is referred to as running in headless mode. You can find a description of that mode in the IBM Developer
Kit for Java documentation at this link:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzaha%2Fnawtsupport.htm
It would be ideal if the ACS programs could use headless mode, as using it is as easy as adding a
command line parameter to the java command (java.awt.headless=true). Unfortunately, even if you add
that parameter value to the java command, the program ends in error.
The alternative is to use what IBM calls the Native Abstract Windowing Toolkit (NAWT) that is also
described in the IBM Developer Kit for Java documentation at this link:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/index.jsp?topic=%2Frzaha%2Fguiintro.htm
The ACS programs will run on your IBM i when you configure NAWT. The NAWT support is provided by
using the Virtual Network Computing (VNC) server that is part of the IBM Tools for Developers LPP. The
VNC server runs in the IBM i Portable Application Solutions Environment (PASE), which provides support
for running AIX applications in the IBM i environment.
After installing and configuring the VNC server on your IBM i, you will work with a VNC viewer on your
workstation. When you use the ACS programs, the output of the programs is directed through the VNC
server to the VNC viewer.
Although it may sound very complicated to work with the tools, there are only a few steps that you need
to do to get everything installed and configured. The steps are shown in the following sections. Once you
have the VNC server and VNC viewer configured, you can use the ACS Data Transfer programs directly on
your IBM i.
57
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Che
eck to see
e if the VNC
V serve
er is alrea
ady runn
ning
___
___ On a 52550 command line, enter the followiing CALL com
mmand to sstart the PAS
SE shell (the
e PASE shelll
is where you will enter the com
mmands to work
w with th e VNC serve
er):
CALL QP2T
TERM
___
___ The PASE shell is dis
splayed. It provides
p a command
c en
ntry display
y that is similar to the c
command
line display used to enter IBM i commands.
___
___ Enter the
e following PASE
P comm
mand to display any currrently active
e VNC serve
ers.
Note: all commands
s that are used in the PASE
P enviro nment are ccase–sensitive.
___
___ If there are ve VNC servers, you will see the ou
a no activ utput shown
n in Figure 6
64.
iac171
58
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ If there is
i at least one active VN
NC server, you
y will see output similar to whatt is shown in
n Figure 65.
If any VN
NC servers are
a active, make
m a notee of the high
hest server instance nu
umber. The server
instance number is preceded by
y a colon (:) character.. You need tto know the
e highest serrver
instance number so that you ca
an start another VNC se erver using the next hig
gher numbe er.
iac172
59
9
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
What is the ps command and what do the gaxuw options mean?
The ps command, used in the PASE environment, displays the status of processes. It is similar to the IBM i
WRKACTJOB command.
The gaxuw options that are used on the command are a set of five individual options. The options are
described in the following IBM document, in the section titled Options:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds4/
ps.htm
The options are used as follows. The descriptions of the options are from the IBM document linked to
above:
a — displays information about all processes with terminals (ordinarily only the own processes of
the user are displayed)
u — displays user–oriented output. This includes the USER, PID, %CPY, %MEM, SZ, RSS, TTY,
STAT, STIME, TIME and COMMAND fields.
w — specifies a wide–column format for output (132 columns rather than 80).
60
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Wha
at does the
e grep com
mmand do?
The grep command searche
es for a patttern in a file
e.
The output of th
he ps command is piped
d to the grep command d, using the vertical barr (|) charactter. In other
word
ds, the outp
put of the ps
s command is the input to the grep
p command.
In th
he command
d that you entered,
e the was Xvnc. That pattern is used to identify the
e pattern to search for w
VNC servers.
If yo
ou run the ps gaxuw com e the outputt to grep, the resulting output migh
mmand and do not pipe ht look like
whatt is shown in Figure 66.
iac173
61
1
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Cre
eate the VNC
V pass
sword file
e
Why y: To use th
he Native Ab bstract Winddowing Toolk kit (NAWT) support, yo
ou must starrt a VNC serrver. The
VNC server thatt you start requires
r a VNC
V passworrd so that th wer can connect to the server. In
he VNC view
this section, you
u will create
e the directo
ory that will contain the
e VNC passw
word.
___
___ In the Sy
ystem i Nav n the Root file system.
vigator, go to the /home directory in
___
___ In the /h
home directory, identify the user pro
ofile name tthat you will use to starrt the VNC s
server.
In Figure
e 67, the user profile na
ame is CRAIG
GP.
On your IBM i, the list of subdirrectories in the /home d irectory willl obviously b
be different from what
is shown
n in the figurre.
iac181
___
___ In the Sy
ystem i Nav
vigator, right–click the user
u profile that will be used to sta
art the VNC server.
Select th
he New Foldder item froom the pop– –up menu, a as shown inn Figure 68.
iac182
62
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ The New
w Folder dia
alog (shown
n in Figure 69)
6 is displa yed. Enter tthe new fold
der name as
s:
.vnc
(note the
e leading pe
eriod charac
cter)
___
___ Click the
e OK button to create th
he folder.
iac183
63
3
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Cre
eate the VNC
V pass
sword
Why
y: You need to enter the VNC password before
e you can co
onnect to th
he VNC serv
ver.
___
___ Enter the
e following command
c on a 5250 co
ommand line
e:
QAPTL/VNC
CPASSWD PASSW
WORD(your_vnc
c_password)
VERIF
FY(your_vnc_p
password)
USEHO
OME(*NO)
PWDFI
ILE(‘/home/yo
our_user_prof
file_name/.vn
nc/passwd’)
Where:
yo ssword is the
our_vnc_pas assword to assign.
e case-sensiitive 6 to 8 ccharacter pa
Note: th
he QAPTL librrary is the library where
e the IBM T
Tools for Developers LPP is insta
alled.
Note: do
o not use yo
our IBM i us
ser profile pa
assword as the VNC server passwo
ord.
___
___ When do
one, verify that the pass ubdirectory, as shown in Figure 70.
swd file is in the .vnc su
vnc184
4
Note
es
The pass
sword that you
y enter on
n the VNCPAS
SSWD comma
and is encry
ypted within the passwd file.
If you forget the pas
ssword valu
ue, delete th
he passwd file
e, then run the VNCPASS
SWD comman
nd again.
64
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Start the VN
NC sever — Initial Start
Why y: If you are
e working with
w a new VNC
V server (that
( is, you
u did not preeviously havve a VNC se erver
conffiguration on
n your IBM i),
i you need d to start thee VNC serveer so that it can build some files th
hat it needs..
Starrting the VNC server als
so lets you verify
v that the server caan be starteed.
___
___ Enter the
e following command
c on a 5250 co
ommand line
e:
QAPTL/STR
RVNCSVR NAME(
(ACS)
___
___ A termin
nal session display
d open
ns. You will see
s ges similar to those sho
messag own in Figure 71.
Note: soome of the text
t that is displayed
d in
n the termin
nal session iss omitted frrom the figu
ure. Text
that iden
ntifies the IB
BM i that thee command was run on n is omitted in the line tthat begins New ꞌACS’’
desktop p is and the line that beegins Log fiile is.
___
___ Press the
e Enter key
y to end the terminal se
ession and rreturn to the
e 5250 command line.
Note: en
nding the te
erminal sess
sion does no
ot end the V
VNC server..
iac191
65
5
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Verrify that the
t VNC server
s is running
Why
y: This step will prove that
t the VNC
C server tha
at you starte
ed in the prrevious step is active.
___
___ On a 525
50 command line, enter the followiing CALL com
mmand to sstart the PAS
SE shell:
CALL QP2T
TERM
___
___ Enter the
e following PASE
P comm
mand to display any currrently active
e VNC serve
ers.
___
___ You shou
uld see that the VNC se
erver is activ
ve, as show
wn in Figure 72.
___
___ The instaance numbe er is the num
mber on the
e third line o
of text that iis preceded by the colo
on (:)
characte
er. You will use
u the insta ance numbeer with the EENDVNCSVR co ommand, de escribed in the next
section.
___
___ When do
one, press th
he F3 key to
o return to the 5250 co
ommand line
e.
iac192
66
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Sto
op the VN
NC server
Why
y: You will le
earn how to
o stop the VNC server.
___
___ Enter the
e following command
c on a 5250 co
ommand line
e:
QAPTL/END
DVNCSVR INSTA
ANCE(1)
Where th
he value tha
at you enterr for the INS
STANCE param
meter is the
e instance number of th
he active
VNC serv
ver (see Figure 72).
___
___ A termin
nal session display
d open
ns. You will see
s ges similar to those sho
messag own in Figure 73.
Note: th
he messages s that are sh
hown in Figure 73 inclu
ude the messsages from the STRVNCSSVR
command that you entered
e earlier. The me
essage for the ENDVNCSV
VR command d starts with
h the line
that begins Killing Xvnc.
X
___
___ Press the
e Enter key
y to end the terminal se
ession and rreturn to the
e 5250 command line.
iac193
___
___ Use the steps shownn in the secttion Verify that the V
VNC server is runningg on page 66
6 to verify
that the VNC serverr is ended (y
you should not
n see it in the process list).
67
7
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Rev
view files
s that we
ere create
ed by starting the
e VNC serrver
___
___ In the Sy
ystem i Nav
vigator, go to your userr directory in
n the /home subdirectorry.
___
___ When yo ou start the VNC serverr the first tim
me, two filess are added to your use
er directory, as shown
in Figure
e 74:
.sh_histo
ory
.Xauthority
iac194
4
68
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Click the
e .vnc subdirrectory to display its co
ontents.
___
___ When yoou start the VNC serverr the first tim
me, two filess are added to the .vnc
c subdirectory, as
shown in
n Figure 75:
xstartup
p
Note: so
ome of the text
t that is displayed
d in
n Figure 75 iis omitted. T
Text that identifies the IBM i that
was used
d to get the screen capture is omittted in the n
name of the .log file.
iac195
69
9
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Start the VN
NC Server
r — Produ
uction Sttart
___
___ Enter the
e following command
c on a 5250 co
ommand line
e:
QAPTL/STR
RVNCSVR NAME(
(ACS)
___
___ The VNC
C server starrts, as descrribed in the section Sta
art the VNC
C sever — I
Initial Starrt on page
65.
Figure 76 shows
s the spool file
f output that
t is creatted when yo
ou run the ST
TRVNCSVR co
ommand in b
batch.
iac198
70
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Figure 77 shows
s the spool file
f output that
t is creatted when yo
ou run the ENDVNCSVR co
ommand in b
batch.
Note
e: the proce
ess ID show
wn in the figu
ure (2360) may
m be diffe you run the command on your
erent when y
IBM i.
iac199
Ope
en firewa
all ports used
u by the
t VNC server
s
Whyy: If your IB
BM i is behin
nd a firewall, you may need
n to ope
en one or moore ports in the firewall so that
you can access the VNC server from th he VNC view
wer programm (described
d in the nextt section).
___
___ If your workstation
w is not in the
e same netwwork as you r IBM i (for example, iff you are accessing
your IBMM i remotely via an Inteernet connec
ction), or if your IBM i iis protected
d by an interrnal firewall,
you will need to ope
en one or more ports.
___
___ The port(s) that you
u need to op
pen are in th
he 580x ran
nge, where “x” is a digit from 1 to 9.
___
___ The value of “x” that you speciffy is based on
o the VNC server insta
ance numbe
er. See Figure 72 on
page 66 for an exammple of how to find the VNC serverr instance number.
___
___ Using Fig
gure 72 as an
a example,, you would need to op en port 580
01 in your ffirewall to acccess the
VNC servver.
71
1
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Wo
ork with
h the VN
NC Viewer
Whyy: To work with
w the VNC server, yoou need a VNC
V viewer p
program on your works station. You can use
any VNC viewerr program thhat you wan
nt. The steps shown in tthis section describe ho
ow to use thhe browser–
–
base
ed VNC view
wer that is provided with
h the VNC server.
s
___
___ Before sttarting, iden
ntify the VNC server ins
stance numb
ber that youu will be wo
orking with. See Figure
72 on pa
age 66 for an example of o how to fin
nd the VNC server insta
ance numbe er.
___
___ Open your browser and enter a URL in the following fo
ormat:
http:/
//ibm_i_h
host_name
e:580x
or
o
http:/
//ibm_i_t
tcp_ip_ad
ddress:58
80x
Where:
80x is the po
58 ort number of the VNC server. The
e “x” value iis a digit fro
om 1 to 9 th
hat
co
orresponds to the VNC server insta
ance numbe
er.
In Figure
e 78, the po
ort number specified
s is 5801.
___
___ The browwser display mation mes sage shown
ys the Security Inform n in Figure 7
78. Click the
e Run
button to
o continue.
vnc241
72
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ You mayy see the Wa arning – Se
ecurity me essage showwn in Figure 79. If you g
get this mes
ssage, click
the No button
b to allow the application to ru
un (the Yes
s button blocks the appplication).
iac242
___
___ The VNCC Viewer – Connectio on Details panel
p shownn in Figure 8
80 is display
yed. The Server value
may alre
eady be filled in; if it is, click OK to
o accept the
e value.
___
___ If the Se
erver value is not filled in, enter it in the form
mat
vnc_serve
er_name:insta
ance
iac243
73
3
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ The VNC
C Authentication panel shown
s in Fig
gure 81 is d isplayed.
___
___ Enter the
e VNC serve
er password that you crreated earlie
er (see the section Cre
eate the VN
NC
password on page 64).
___
___ Press En
nter after yo
ou enter the
e password.
iac244
4
___
___ The VNC
C viewer pan
nel shown in
n Figure 82 is displayed
d. Leave the
e panel open
n on your wo
orkstation
desktop.
iac245
74
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Sta
art the Data
D Tra
ansfer program
p m on the
e IBM i
Why y: You now have everytthing configured to worrk with the D
Data Transffer program on the IBM M i. In this
section, you will start the Data
D Transfe
er program on your IBM
M i for the first time, an
nd handle so
ome of the
tasks that need to be done the first tim
me you run the program
m.
Che
eck for en
nvironme
ent variab
bles
Whyy: There aree two enviro
onment varia ables that are
a needed tto run the A ACS Data Transfer program. When
you start the Java application for the Data
D Transfe
er, the valuees assigned to the enviironment vaariables are
used
d in the Java
a environme ent. If the environmentt variables aare already d
defined, youu need to re
emove the
environment variable or change its vallue to the va alue require
ed by the Daata Transferr program.
___
___ On a 525
50 command line, enter the followiing comman
nd:
WRKENVVAR
R
___
___ The Wor rk with Env vironment Vars displa
ay (Figure 8
83) show the ent variables associated
e environme d
with the interactive job.
iac221
75
5
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Remove environment variable(s)
Why: If the environment variable(s) that are needed by the Data Transfer program are already in use,
you can remove the variable(s) or change its value. This section shows how to remove the environment
variable(s).
_____ On the Work with Environment Vars display (Figure 83), look for an environment variable
named DISPLAY and an environment variable named XAUTHORITY.
_____ If the DISPLAY and XAUTHORITY environment variables are not defined, go to the section Add
environment variables on page 78.
_____ Make a note of the current value of the DISPLAY or XAUTHORITY environment variables.
_____ You can either remove and add the environment variables, or you can change the value of the
existing DISPLAY and XAUTHORITY environment variables.
If you want to change the existing value of the existing environment variables, go to the section
Change environment variable(s) on page 77.
_____ Use either of the following steps to remove the existing environment variables.
Note: use the steps shown here to remove the DISPLAY and XAUTHORITY environment variables only.
Do not remove any other environment variables that are shown in the WRKENVVAR display.
____ Use option 4 (Remove) on the WRKENVVAR panel to remove the environment variable.
_____ Continue with the steps in the section Add environment variables on page 78.
76
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Change environment variable(s)
Why: If the environment variables DISPLAY or XAUTHORITY are already defined, you can use the Change
Environment Variable (CHGENVVAR) command to set the value that is required by the ACS Data Transfer
program.
_____ Use either of the following steps to change the existing environment variables DISPLAY and
XAUTHORITY.
____ Use option 2 (Change) on the WRKENVVAR panel to change the value.
____ Use the Change Environment Variable (CHGENVVAR) command on a 5250 command line.
DISPLAY ibm_i_host_name:vnc_instance_number
or
ibm_i_tcp_ip_address:vnc_instance_number
77
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Add environment variables
Why: The ACS Data Transfer program uses two environment variables named DISPLAY and XAUTHORITY.
The values of the environment variable point to the VNC server and its configuration.
or
Notes
Enter the environment variable names in upper–case, as shown in the commands above.
The vnc_instance_number is the instance number assigned when you started the VNC server (see
Figure 72 on page 66 for an example of determining the instance number).
For your_user_profile_name, enter the name of the user profile where the .Xauthority file is located
(see Figure 74 on page 68).
IMPORTANT!
The values that you enter for the environment variables in your 5250 session are not
persistent. When you sign-off from your 5250 session, the values for the environment variables
are not kept.
The next time you sign on to a 5250 session, you need to add the environment variables.
If you will be running Data Transfers frequently from your 5250 session, you may want to
consider adding the ADDENVVAR commands to your start up program.
IMPORTANT!
78
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
Start the Data Transfer program
Why: You can now run the Data Transfer program. For the first test, you will run the java command in the
QSHELL environment.
_____ Verify that the VNC viewer application is still running on your workstation. If it is not running, start
it and connect to the VNC server running on your IBM i. (See the section Work with the VNC
Viewer on page 72.)
_____ On a 5250 command line, enter the QSH (Start QSHELL) command.
_____ Enter the following command on the QSH Command Entry line.
Note: the value for the os400.class.path.security.check parameter is zero, not the letter “O”.
Note: for the /userid parameter, enter the name of your user profile. This must be the same user
profile name that you used to start the VNC server.
Note: enter the entire command on one line in the QSH Command Entry panel. The line will “wrap”
on the Command Entry panel as you type it in. The command text shown in this example is
wrapped on this page.
/PLUGIN=download /file=/IACXFER/xqcustcdt.dtfx
/userid=your_user_profile_name
79
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
___
___ The java
a command might take a few seconnds to start.. You should
d see the En
nd User Lic
cense
Agreemment display
yed in the VN
NC viewer, as
a shown inn Error! Refference source not fo ound..
iac231
80
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ Use the scroll bar on
n the right side
s of the License
L Ag reement wwindow to sccroll to the e
end of the
License Agreement.
A When you get to the ende of the ag
greement, tthe Yes buttton is enabled.
___
___ Click the
e Yes button
n to accept the
t agreement. If you d
do not acce
ept the agree
ement, the Data
Transfer program will not run.
___
___ After you
u accept the
e agreementt, you can close
c the VN
NC viewer window and tthe browserr window
that you used to ope
en the viewer.
iac232
Figurre 85: Scroll to the end off the License Agreement, click the Yes button to acccept the agre
eement.
81
1
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
___
___ After you
u accept the
e agreementt, the Data Transfer pro
ogram that is running in the QSH C
Command
Entry panel promptss for your IB
BM i user ID
D, as shown in Error! R
Reference ssource not found..
___
___ Enter your IBM i use
er ID and prress Enter.
iac233
___
___ You are prompted to
o enter yourr IBM i pass
sword, as sh
hown in Erro
or! Referen
nce source
e not
found..
___
___ Enter your IBM i pas
ssword and press Enter.
iac234
4
82
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Figurre 87: Enter your
y IBM i pa
assword when
n prompted.
___
___ The Data
a Transfer program
p runs. The mess
sages show n in Figure 45 are displayed when the
program ends.
___
___ Press the
e F3 (Exit) function
f key
y to close th
he QSH Com
mmand Entry
y panel.
iac235v2
___
___ In the Sy
ystem i Nav
vigator, go to the output directory tthat you speecified (see the ClientF
File item in
n
Figure 42
2 on page 30).
3 In this example,
e th
he output dirrectory is IF
FS directory /IACOUT.
___
___ The qcus
stcdt.csv file is the output from the Data Tran
nsfer progra
am.
___
___ Copy the
e qcustcdt.c
csv file to yo
our workstation and op
pen it. You sshould see the same output as you
saw wheen you ran the Data Tra ansfer on yo
our workstattion, as show e 28 on pag
wn in Figure ge 21.
iac236
83
3
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
Figurre 89: The qc
custcdt.csv fille is in the ou
utput directorry used by th
he Data Transsfer program.Run the Datta Transfer
progrram — Pass 2
Whyy: The first time
t you ran the Data Transfer
T proogram, you were prompted to acce ept the License
Agre
eement. You u also had to en you run tthe Data Transfer
o enter yourr IBM i userr ID and passsword. Whe
again, you will not
n need to do either off those task ks.
___
___ Delete th he /IACOUT/q sv file from the
qcustcdt.cs t IFS. You
u can use th
he System i Navigator tto delete
the file.
___
___ Verify that the VNC viewer application is sttill running o
on your worrkstation. Iff it is not run
nning, start
onnect to the
it and co e VNC serve
er running ono your IBM i. (See the section Wo ork with th he VNC
Viewer on page 72.)
___
___ On a 525
50 command line, enter the QSH (S
Start QSHEL L) command
d.
___
___ The QSH
H Command Entry panel is displaye
ed.
___
___ Enter the
e following command
c on the QSH Command
C E
Entry line.
Note: th
he command
d is case–se
ensitive, enter it as sh
hown.
java –jar /I
IAC/acsbu
undle.jar
r -Dos40
00.class.
.path.sec
curity.ch
heck=0
/PL
LUGIN=dow
wnload /file=/IA
/ ACXFER/xq
qcustcdt.
.dtfx
/userid=you
ur_user_p
profile_n
name
iac237
___
___ The Lice
ense Agree
ement pane
el is not disp
played in the
e VNC viewe
er.
___
___ Use the System i Na
avigator to verify
v that file
f /IACOUT/ sv has been
/qcustcdt.cs n created.
84
Run IBM i Access
s Client Solutions Datta Transferrs on the IB
BM i
Copyrightt © 2012, Craiig Pelkie, ALL R
RIGHTS RESER
RVED
END OF DOCUMENT
85
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED
86
Run IBM i Access Client Solutions Data Transfers on the IBM i
Copyright © 2012, Craig Pelkie, ALL RIGHTS RESERVED