![]()
Lab10 and Lab11 will be empty libraries that you will use for those labs.
You may want to make backup copies of the OPRLIB so you can refresh it if you deleted items that you need by mistake.
![]()
Create Save Files
Use the CRTSAVF command to create these save files in your library.
They need to be empty as you are going to FTP these from your PC to the iSeries 400 in your library.
|
Create Save File (CRTSAVF) Type choices, press Enter. Save file . . . . . . . . . . . > LAB4 Name Library . . . . . . . . . . . *CURLIB Name, *CURLIB Text 'description' . . . . . . . *BLANK |
![]()
Save Files
To save the above files right click on the file and save it to your PC or media.
These files are binary files.
![]()
Transfer the above save files to your iSeries 400
From the command line or with an FTP tool upload these save files to your iSeries 400.
Make sure you change the mode in FTP to binary before you upload the files.
FTP commands below.
![]()
FTP Commands to upload the save files to your iSeries 400
Go to the command prompt found in the Accessories folder.
Assuming that the save file is stored in a folder titled AS400 on your computer on the C: drive and you have created the empty save files in your library and your server has the following IP address 67.116.99.251(or server name for example as4003.cerritos.edu) the following would the series of commands you should use. What you type is in red.
C:>FTP 67.116.99.251
User :OPR00xx (where xx is your number)
Password: enter your password
ftp>binary
ftp>put
C:\AS400\lab4.savf
ftp>put
c:\AS400\OPRLIB.savf
ftp>put
c:\AS400\SWLBAS.savf
ftp>quit
![]()
Restore the libraries from the Save Files to your system:
Check the contents of your uploaded save files. Verify that they contain the contents of the libraries prior to restoring them. Use the DSPSAVF command to view the contents.
Use the RSTLIB command to restore
the files to your system.
|
Restore Library (RSTLIB) Type choices, press Enter. Saved library . . . . . . . . . > LAB4 Name, generic*, *NONSYS... + for more values Device . . . . . . . . . . . . . > *SAVF Name, *SAVF, *MEDDFN + for more values Save file . . . . . . . . . . . > LAB4 Name Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB |
3. Repeat the above command for all of the save files (OPRLIB,
and SWLBAS).
![]()
SaveFiles05.htm
Last updated 9/22/05