2.8 Exporting/Importing converted material

 

Once a 5250 application has been converted to WEB on a given iSeries, you may want to export its conversion data to other iSeries systems running that same application. This would avoid to run again the same conversion on each system.

Of course, each importing system must have installed the iWEB Runtime.

  Old Command IWEB/EXPORT - Exporting a conversion to other iSeries systems
Old Command IWEB/IMPORT - Importing a conversion from another iSeries system


New Command IWEB/SAVOBJIWEB - Save Object - System objects, IFS objects and iWeb converted objects (all apps + converted objects), by name, type, change date

New Command IWEB/RSTOBJIWEB - Restore Object - System objects, IFS objects and iWeb converted objects (all apps + converted objects), by name, type, change date

2.8.1 Command IWEB/EXPORT - Exporting a conversion to other iSeries systems

This command saves the conversion data on a save file in library QGPL.
To import the conversion data on another system, the following will have to be done:

  1. restore the save file on library QGPL
  2. run command IWEB/IMPORT
 
 
                       Export converted objects (EXPORT)                   
                                                                           
Type choices and press Enter.                                       
                                                                           
Original object library  . . . .                 Name                      
Conversion object library  . . .                 Name                      
Target release for export lib.     *CURRENT      Character value                        
Figure 02-24 IWEB/EXPORT command
  • Original object library - ORGLIB. This is the name of the original object library that did undergo an iWEB conversion. Its name is used to pick up the data to be exported.
  • Conversion object library - CVTLIB. This is the name of the library where the converted programs were created.
  • Target release - TGTRLS. Target release the exported data should be saved. Converted programs - created at a release higher than the target release specified here - cannot be exported.
  • Objects to export - OBJECTS.
    • *ALL to export all the objects converted for the given object library (programs, display files, menus, panel groups).
    • *NOPGM not to export any of the converted programs. This option must be used whenever the conversion developer decides to apply a strategy different from having the original programs replaced through the IWEB/EXPORT and IWEB/IMPORT commands (e.g. saving and restoring programs through a different save file).
    • *ONLYPGM to export only the converted programs. Information related to display files, menus, panel groups is not exported.
    • *SELECT to export only a user specified list of converted objects (programs, display files, menus, panel groups). A separate screen will allow to enter this user specified list.

2.8.2 Command IWEB/IMPORT - Importing a conversion From another iSeries system

To import iWEB conversion data from another system where the IWEB/EXPORT command was run, restore to library QGPL the save file generated by the EXPORT command, then enter command IWEB/IMPORT:  
 
                    Import iWEB converted objects (IMPORT)    
                                                              
Type choices and press Enter.                          
                                                              
Exported save file . . . . . . .                 Name         
  Library  . . . . . . . . . . .     QGPL        Name         
Import to library  . . . . . . .   *ORGLIB       Name, *ORGLIB                     
Figure 02-25 IWEB/IMPORT command

  • Exported save file - SAVF. Qualified name of the save file containing the iWEB data to be imported.
  • Import to library - IMPTOLIB. This is the library where the iWEB data and converted programs should be imported.
    Select
    • *ORGLIB if you want the iWEB data and converted programs to be imported in the "original library" defined in parameter ORGLIB of the IWEB/EXPORT command
    • An appropriate library name where the iWEB data and converted programs are to be imported.