Installation

  1. Download csv.exe and execute it on Windows95/98/NT to extract csv.savf.
  2. Create save-file on your AS/400.
  3. Connect to the AS/400 using any FTP client software.
  4. Put the distribution (csv.savf) to the save-file in binary mode.
  5. Restore objects from the save-file using RSTOBJ command.

Sample instruction

Create save-file on the target AS/400:

> CRTSAVF FILE(QGPL/CSV)
File CSV created in library QGPL.

Send save-file from Windows95/98/NT/2000 command prompt:

E:\>ftp your_as400_hostname
Connected to ????.
220-QTCP AT ????.
220 CONNECTION WILL CLOSE IF IDLE MORE THAN 5 MINUTES.
User (????:(none)): as400_user_id
331 ENTER PASSWORD.
Password:enter_password_for_the_user_id
230 ???? LOGGED ON.
ftp> bi
200 REPRESENTATION TYPE IS BINARY IMAGE.
ftp> put csv.savf qgpl/csv (replace
200 PORT SUBCOMMAND REQUEST SUCCESSFUL.
150 SENDING FILE TO MEMBER CSV IN FILE CSV IN LIBRARY QGPL.
250 FILE TRANSFER COMPLETED SUCCESSFULLY.
287232 bytes sent in 1.10 seconds (260.88 Kbytes/sec)
ftp> quit
221 QUIT SUBCOMMAND RECEIVED.

Go back to the 5250 session:

> DSPSAVF FILE(QGPL/CSV)
> CRTLIB LIB(CSV)
Library CSV created.
> RSTOBJ OBJ(SOURCE LICENSE) SAVLIB(CSV) DEV(*SAVF) SAVF(QGPL/CSV)
2 objects restored from CSV to CSV.
> STRREXPRC SRCMBR(MAKE) SRCFILE(CSV/SOURCE)
  Start CRTCSVF compilation.
You must have authority to exec CRTxxx.

* * * * * * * * * * * * * * * * * * * * * *


Start creating CRTCSVF command...
creating CL program CRTCSVFCLP...
result-> 0
creating main program module CRTCSVFRPG...
result-> 0
creating main program CRTCSVFRPG...
result-> 0
creating pnlgrp...
result-> 0
creating command...
result-> 0

Compile finished. Confirm error(s) if exists.

Press ENTER to end terminal session.


[Home]