OPALE - 10.0 - Migration - Process de migration/en

Différence entre versions

De MappingDoc
(Page créée avec « ==Testing== ===Test cases executed interactively=== The idea is to run each command manually for each spool file and each template you wish to test. »)
(Page créée avec « ===Test cases executed automatically=== The idea is to send the input spool files to the input outq used for testing. The robot will pick up the spool files and run the co... »)
Ligne 417 : Ligne 417 :
 
The idea is to run each command manually for each spool file and each template you wish to test.
 
The idea is to run each command manually for each spool file and each template you wish to test.
  
===Cas des tests exécutés de façon automatiques===
+
===Test cases executed automatically===
Le principe est de déposer les spooled files d'entrée dans l'outq test d'entrée. Le robot récupèrera alors les spooled files et éxécutera les bonnes commandes paramétrées dans le robot Mapping.
+
The idea is to send the input spool files to the input outq used for testing. The robot will pick up the spool files and run the commands set in the Mapping robot. In this case, you need to make sure that the input outq is configured properly and that the default printer is specified in the rules.
Dans ce cas, il faut bien s'assurer que l'Outq d'entrée soit bien paramétrée et que l'imprimante par défaut soit bien renseigné dans les règles.
 
  
 
*Aller sur les règles utilisées pour tester et choisir l'imprimante de test (Option 14, 3 et 8) 
 
*Aller sur les règles utilisées pour tester et choisir l'imprimante de test (Option 14, 3 et 8) 

Version du 21 mai 2019 à 14:55

Sommaire

Introduction

This article describes the process that must be applied to upgrade OPALE Server on a iSeries server. This procedure also applies to an upgrade to M-PS 7.2.

General steps

The procedure below is based on the assumption that the production environment that will be migrated is set up in a library called MAP400.

The update procedure for OPALE Server includes the following steps:

  • Setting up of a development environment where OPALE Server will be installed
  • Copying the production environment settings to the development environment
  • Creating an OUTQ monitored by Mapping and edit print routing rules accordingly
  • Running tests
  • Moving to production
  • Rollback in case there is a problem
  • Troubleshooting

Any changes made to templates (whether it be intentional or because of a delta following the update) will need to be made using a Designer in the same version as OPALE Server and with UNICODE.

Requirements

User profile

- Access to the QSECOFR profile has to be granted for you to install the product

Elements gathering

The user should have a relatively good knowledge of the environment. To do so, one should be able to:

- Identify the key documents that need to be tested by Mapping or by a certified partner
- Identify the raw spooled files for each of the documents
- Identify the Designer projects (.mpp, .mpw and .mpi files) for each of the documents as well as the possible components
- Have a PDF and/or .dmp file for each document that needs to be printed
- Identify the strategic rules in the production environment
- Gather the different iSeries spooled files (in an outq: MAPREF/MAPQUALREF) with their corresponding Mapping output results (PCL, ZPL, TEC, etc) generated with the current Mapping production server.

Caution: All fonts used have to be in TTF format (all other types of fonts will have to be switched for TTF fonts)


All "Windows" files must be saved in specific folders, one folder per document.

Note: When all the required information has been gathered, a precise upgrade estimate can then be made.

CAUTION: If required information is missing, Mapping or a certified partner will need to study the existing environment and retrieve all the information required.

User environment

To be done by MAPPING or a cetified partner

  1. Check whether Mapping is configured in UNICODE: use option 14/1
  2. Check the rules and actions used by the customer
  3. Check the company name entered in the settings (option 14/1) and use the same one in the test library
  4. Check that the configuration settings (option 14/1) are the same in MAPPINGQUA and MAP400 (except for IFS paths)
  5. Check MAPSND settings (MapSend menu, Option 1)

Installation

Copying the production environment

The first thing to do is to make a copy of the customer's production library. Name this copy: MAPPINGCPY and use it for any data manipulation.

CPYLIB FROMLIB(MAP400) TOLIB(MAPPINGCPY)

The goal with these different names is to avoid making mistakes, confusing MAP400 with MAP400CPY, for instance. This is the reason why the name MAPPINGCPY is used. Any manipulation of the production tools will have to be done using the MAPPINGCPY library only. Do not modify anything in MAP400 (assuming MAP400 is the current production library).

Getting the latest setup available

Download the latest setup made available by Mapping.


Installing the product in a new library

Install the new version of OPALE Server: Installation guide for OPALE Server

CAUTION: DURING THE UPDATE, DO NOT KEEP MAP400 as the installation library

  • Library name: MAPPINGQUA
  • Subsystem name: MAPSQUAL
  • IFS path: "/home/MAPQUAL/mapping" (mapsend,mapreport,mapout)


Setting up the environment (as per migration type)

No matter which migration type was chosen (see the list below), all tests must be carried out on the newly installed environment: MAPPINGQUA.

The production environment (ex : MAP400) must never be modified! The production environment has to stay untouched for the entire time of the migration and beyond.


SIMPLE Update: Copying templates

In a simple upgrade, AS/400 resource files are simply copied over to the new system. The files copied over are the Designer formats and the rules and relations between Outqs. The existing document templates are not generated again.

Step 1: Copying Designer formats

Files which have to be copied from MAPPINGCPY to MAPPINGQUA :

Copying formats

The files are copied from MAPPINGCPY to MAPPINGQUA (choose Option 3 then 3/Copy Designer Formats)

Copying all formats at once

If there are a lot of formats and you want to copy them all at once, you can copy the following physical files (MAPLNK, MAPLNKL1, MAPOBJ, MAP1, MAP2D, MAP2H, MAP3, MAP3L1, MAP)

Copying process for Designer format files

Special case, MAPLNK/MAPLNKL1:

Delete previous object MAPLNKL1 before copying MAPLNK
strpdm
Option 2
Library: MAPPINGQUA
Name: MAPLNKL1
Option 4 to delete MAPLNKL1
Replace the old MAPLNK with the new one
strpdm
Option 2
Library: MAPPINGCPY
Name: MAPLNK
Option 3 before MAPLNK
In library: MAPPINGQUA
Delete existing object: O
Copy the new MAPLNKL1 once MAPLNK has been copied
strpdm
Option 2
Library: MAPPINGCPY
Name: MAPLNKL1
Option 3 before MAPLNKL1
To library: MAPPINGQUA

Special case, MAP3/MAP3L1:

Delete old object MAP3L1 before copying MAP3
strpdm
Option 2
Library: MAPPINGQUA
Name: MAP3L1
Option 4 to delete MAP3L1
Replace the old MAP3 with the new one
strpdm
Option 2
Library: MAPPINGCPY
Name: MAP3
Option 3 before MAP3
To library: MAPPINGQUA
Delete existing object: O
Copy the new MAP3L1 once MAP3 has been copied
strpdm
Option 2
Library: MAPPINGCPY
Name: MAP3L1
Option 3 before MAP3L1
To library: MAPPINGQUA

Generic case for other objects:

Copy new MAPOBJ
strpdm
Option 2
Library: MAPPINGCPY
Name: MAPOBJ
Option 3 before MAPOBJ
To library: MAPPINGQUA
Delete existing object: O

Repeat the same steps for the following objects: MAP1, MAP2D, MAP2H, MAP

Step 2: Copying OUTQ settings

strpdm
Option 2
Library: MAPPINGCPY
Name: MAPOUTQ
Option 3 before MAPOUTQ
To library: MAPPINGQUA
Delete existing object: O

Step 3: Copying rules and actions

Copy physical files MAPPINGCPY/SPLMAP, ACTLIG and ACTION (not OUTOUT) to library MAPPINGQUA

Copying the new SPLMAP

strpdm
Option 2
Library: MAPPINGCPY
Name: SPLMAP
Option 3 before SPLMAP
To library: MAPPINGQUA
Delete existing object: O

Repeat the same steps for the following objects: SPLMAP, ACTLIG, ACTION

Step 4 : Copying IFS data

  1. Copy all different Designer projects to "/home/MAPQUAL/mapping/docPC/M-Designer_BACKUP_VersionMPSixxxx/" to keep a copy of the original projects (where you replace xxxx with the release number of OPALE Server)
  2. Copy the content of "home/mapping/ttf/" to "home/MAPQUAL/mapping/ttf/"
  3. Copy the content of "/home/mapping/lgobitmap" to "/home/MAPQUAL/mapping/lgobitmap/"

Step 5 : Rebuilding the LSTOBJ.TXT file

Run the following command:

CALL MAP_823

Step 6 : Creating a monitored Outq for testing (optional)

If you skip this step, run the test commands in interactive mode.

  • OutqName: MAPQUALIN
  • DATAQ: DTAQUAL
  • LIB: MAPPINGQUA
  • Default printer: “To be defined with the customer”

Troubleshooting

No trouble detected

If there is no trouble detected, then it's all good. you just need to ensure that the Designer source files are saved in a way that is easy to understand and find.

Our recommendation is to create one folder per template containing the Designer source files and the input file (PAG or XML) used.

Something wrong is detected

If a problem is detected, you will need to generate the project again using the latest version of the Designer available for your Mapping server (OPALE or 7.2). The project can be generated in Unicode or non Unicode as per existing configuration settings.

Then, there are two options:

1. Generating the template again solves the issue (with or without making changes to the template).

Nothing else needs to be done. In this case, all you need to do is make sure you store the project source files (mpi, mpp and mpw) so you can find them easily and know they have been opened and generated with the new version of Designer.

2. Generating the template again does not solve the issue.

In this case, you will need to generate it in Unicode:

  • Generate in Unicode (code page 1200)
  • Run the template in UNICODE on the server

If this fixes the problem then it's all good.
If not, you will need to make a request to the MAPPING technical support.

Caution: The issue will be solved in Unicode only.

Advanced update: generating all templates again in their original language

In an Advanced Upgrade, all document templates will be generated again (in UNICODE: Code page 1200 in Designer). Only the resource files for rules and relations between Outqs will be copied over to the new system.

Step 1: Generating Designer projects again

  1. Install the latest Designer setup (for use with the server side OPALE or 7.2 Server)
  2. Open each template and generate it again manually in code page 1200 on the new server


Note : You can script the generation process of templates by following the steps described below.

To do so, you will need to:

  1. For each project, identify the input file (XML and SPOOL) and generation language (PCL, ZPL, etc.) and store them in folders per generation language AND input file type
  2. Run the script below to generate all files automatically:

for %%X in ("C:\MAPPING\M-Processing Server\Import\docpc\*.mpp") do ("C:\MAPPING\M-Designer\M-Designer.exe" "-Generate" "-ProjectFile:%%X" "-Hide")

Note: The paths must be changed according to context.

The input file type is set using parameter XXXXXXXXXXXXXX (not finished)

The generation language is set using parameter YYYYYYYYYYYY (not finished)

Step 2 : Copying OUTQ settings

Copy files from MAPPINGCPY to MAPPINGQUA :

strpdm
Option 2
Library: MAPPINGCPY
Name: MAPOUTQ
Option 3 before MAPOUTQ
To library: MAPPINGQUA
Delete existing object: O

Step 3 : Copying rules and actions

Copy the physical files MAPPINGCPY/SPLMAP, ACTLIG and ACTION (not OUTOUT) to library MAPPINGQUA

Copying the new SPLMAP

strpdm
Option 2
Library: MAPPINGCPY
Name: SPLMAP
Option 3 before SPLMAP
To library: MAPPINGQUA
Delete existing object: O

Repeat the same steps for the following objects: SPLMAP, ACTLIG , ACTION

Step 4 : Copying IFS data

  1. Copy all different Designer projects to "/home/MAPQUAL/mapping/docPC/M-Designer_BACKUP_VersionMPSixxxx/" to keep a copy of the original projects (where you replace xxxx with the release number of OPALE Server)
  2. Copy the content of "/home/mapping/lgobitmap" to "/home/MAPQUAL/mapping/lgobitmap/"


Step 5: Creating a monitered Outq for testing (Optional)

If this step is skipped, the test commands will need to be run in interactive mode.

  • OutqName: MAPQUALIN
  • DATAQ: DTAQUAL
  • LIB: MAPPINGQUA
  • Default printer: “To be defined with the customer”

Troubleshooting one document

No trouble detected

The template can be used as is.

Something wrong is detected

Depending on the problem:

  1. Zones not aligned correctly: Edit the template to realign the zones and check that the preview is now correct. Print or create the document (print, PDF, etc.) to ensure it is the same as the preview.
  2. Barcodes:
    1. Barcodes not aligned correctly: Check the preview on the template and fix it if necessary
    2. Data printed under barcode distorted or missing: Uncheck and re-check the box Data printed under barcode (in the Properties of the Barcode zone)
    3. To be completed

Then, there are two options:

  1. The changes made to the template have solved the issue (the printed or PDF version of the file matches the preview).

In this case, all you need to do is make sure you store the project source files (mpi, mpp and mpw) so you can find them easily and know they have been opened and generated with the new version of Designer.

  1. The changes made to the template did not solve the issue.

You will need to make a request to the MAPPING technical support.
. All you need to do is make sure to store the project source files (mpi, mpp and mpw) so you can find them easily and know they have been opened and generated with the new version of Designer.


Caution: The issue will be solved in Unicode only.

Advanced XPS update: generating all templates in XPS

In the advanced XPS upgrade, all document templates are generated in XPS language (in UNICODE: Code page 1200 in Designer and generation in XPS). Only the resource files for rules and relations between Outqs will be copied over to the new system.


Step 1: Generating Designer projects again

  1. Install the latest Designer setup (for use with the server side OPALE or 7.2 Server)
  2. Open each template and generate it manually in code page 1200 in XPS on the new server


Note: You can script the generation process of projects by following the steps described below. To do so, you will need to:

  1. For each project, identify the input file (XML and SPOOL) and generation language (PCL, ZPL, etc.) and store them in folders per generation language AND input file type
  2. Run the script below to generate all files automatically:

for %%X in ("C:\MAPPING\M-Processing Server\Import\docpc\*.mpp") do ("C:\MAPPING\M-Designer\M-Designer.exe" "-Generate" "-ProjectFile:%%X" "-Hide")

Note: The paths must be changed according to context. The input file type is set using parameter XXXXXXXXXXXXXX (not finished) The generation language is set using parameter YYYYYYYYYYYY (not finished)


Step 2 : Copying OUTQ settings

Copy files from MAPPINGCPY to MAPPINGQUA :

strpdm
Option 2
Library: MAPPINGCPY
Name: MAPOUTQ
Option 3 before MAPOUTQ
To library: MAPPINGQUA
Delete existing object: O


Step 3: Copying rules and actions

Copy physical files MAPPINGCPY/SPLMAP, ACTLIG and ACTION (not OUTOUT) to library MAPPINGQUA

Copying the new SPLMAP

strpdm
Option 2
Library: MAPPINGCPY
Name: SPLMAP
Option 3 before SPLMAP
To library: MAPPINGQUA
Delete existing object: O

Repeat the same steps for the following objects: SPLMAP, ACTLIG , ACTION


Step 4: Copying IFS data

  1. Copy all different Designer projects to "/home/MAPQUAL/mapping/docPC/M-Designer_BACKUP_VersionMPSixxxx/" to keep a copy of the original projects (where you replace xxxx with the release number of OPALE Server)
  2. Copy the content of "/home/mapping/lgobitmap" to "/home/MAPQUAL/mapping/lgobitmap/"


step 5: Creating a monitered Outq for testing (Optional)

If this step is skipped, the test commands will need to be run in interactive mode.

  • OutqName: MAPQUALIN
  • DATAQ: DTAQUAL
  • LIB: MAPPINGQUA
  • Default printer: “To be defined with the customer”


Troubleshooting one document

No trouble detected

The template can be used as is.


Something wrong is detected

Depending on the problem:

  1. Zones not aligned correctly: Edit the template to realign the zones and check that the preview is now correct. Print or create the document (print, PDF, etc.) to ensure it is the same as the preview.
  2. Barcodes:
    1. Barcodes not aligned correctly: Check the preview on the template and fix it if necessary
    2. Data printed under barcode distorted or missing: Uncheck and re-check the box Data printed under barcode (in the Properties of the Barcode zone)
    3. To be completed

Then, there are two options:

  1. The changes made to the template have solved the issue (the printed or PDF version of the file matches the preview).

In this case, all you need to do is make sure you store the project source files (mpi, mpp and mpw) so you can find them easily and know they have been opened and generated with the new version of Designer.

  1. The changes made to the template did not solve the issue.

You will need to make a request to the MAPPING technical support.
. All you need to do is make sure to store the project source files (mpi, mpp and mpw) so you can find them easily and know they have been opened and generated with the new version of Designer.


Caution: The issue will be solved in Unicode only.

Special cases

The 3 upgrade types defined above are always true. However, there can be some special cases:

Partial upgrade to XPS

There are several reasons why a customer may want to upgrade only a few documents to XPS:

  1. To simplify the management of templates if there are multiple templates for one given document. One XPS template can be produced in multiple output languages.
  2. Need to implement more post-processing actions for one document:
    1. Merging one document with other Mapping or non Mapping documents
    2. Converting one datastream from one language to another (e.g. PDF to XPS and then concatenate with another document)
    3. Etc.

Thermal languages (Zebra, TEC)

It is strongly recommended to convert all thermal templates to XPS. The main reasons are:

  1. Designer preview and printed output more reliable in XPS as in native thermal language
  2. XPS to TEC or to ZPL more reliable and user-friendly in XPS

Testing

Test cases executed interactively

The idea is to run each command manually for each spool file and each template you wish to test.

Test cases executed automatically

The idea is to send the input spool files to the input outq used for testing. The robot will pick up the spool files and run the commands set in the Mapping robot. In this case, you need to make sure that the input outq is configured properly and that the default printer is specified in the rules.

  • Aller sur les règles utilisées pour tester et choisir l'imprimante de test (Option 14, 3 et 8) 
  • Copier les fichiers spool d'entrée du client un par un dans l'output queue Mapping monitorée et vérifier les résultats par rapport aux fichiers de référence.


Validation

La mise à niveau finale de l'environnement de production sera réalisée lorsque le client aura validé à l'écrit tous les documents.

Passage en production

Une fois la validation client réalisée, il est temps de passer en production. Le principe est de faire une autre installation et d'utiliser cette nouvelle bibliothèque comme bibliothèque de production. De ce fait, nous ne touchons pas à l'ancienne bibliothèque de production, ce qui pourrait être très utile en cas de besoin de retour arrière si un problème survient sur le nouvel environnement de production.

  • Copier la bibliothèque de production MAP400 en MAPPRODCPY
  • Lancer le setup de la nouvelle version en spécifiant MAP400_XX pour bibliothèque d'installation et MAPSRBT_XX (avec XX le numéro de version : 71,72 ou OP Exemple : MAP400_OP et MAPSRBT_OP)

ATTENTION : Ne pas laisser MAP400 par défaut

  • Entrer les clefs d'activation du logiciel
  • Copier les objets (règles, action et relations outqs) suivants de MAPPRODCPY vers MAP400_XX : OUTOUT, SPLMAP, ACTLIG et ACTION (voir procédure de copie d'objets ci-dessus)

ATTENTION : NE PAS FAIRE L ERREUR ENTRE MAP400 et MAP400_XX

  • Copier les objets (Formats Designer) suivants de MAPPINGQUA vers MAP400_XX : MAPLNK, MAPLNKL1, MAPOBJ, MAP1, MAP2D, MAP2H, MAP3, MAP3L1, MAP (voir procédure de copie d'objets ci-dessus)

ATTENTION : NE PAS FAIRE L ERREUR ENTRE MAP400 et MAP400_XX

  • Arrêter le sous-système de production MAPSROBOT
  • Renommer l'ancienne bibliothèque MAP400 en MAP400OLD
  • Démarrer le sous-système MAPSRBT_XX
  • Lancer des traitements en mode production

Retour arrière en cas de problème

  • Arrêter le sous-système MAPSRBT_XX
  • Renommer la bibliothèque MAP400_XX en MAP400_KO
  • Renommer la bibliothèque MAP400OLD en MAP400
  • Redémarrer le sous-système MAPSROBOT (ancien sous-système)

Mapping tourne alors avec son ancienne version.

Troubleshooting

Problème 1 : Vous constatez un écart sur un document entre celui produit à l'aide de l'ancienne version (avant upgrade) et la nouvelle (après upgrade)

Solution : Consulter la marche à suivre ci-dessus selon le type d'upgrade choisi


Problème 2 : Les mails ne partent pas et le job MAPSMTP ne démarre pas

Solution : Vérifier le contenu de la dataq MAP400_XX :

DSPDTAQ DTAQ(MAP400_XX/MAPSMTP)

Si celle-ci contient des STOP, à ce moment-là, faire un

CLRDTAQ DTAQ(MAP400_XX/MAPSMTP)

Renvoyer les e-mails.

Problème 3 : Vérification que tout se soit bien passé lors de l'installation Exécuter cette commande pour voir les messages d’installation :

DSPJOBLOG OUTPUT(*PRINT)

Autres points à vérifier :

  • Lire le DSPJOBLOG à la fin du processus
  • En cas de déconnexion, la commande SIGNOFF *LIST permet de récupérer les erreurs ou alertes d’installation

Pour vérifier les erreurs de restauration (objet verrouillé, mauvais propriétaire, etc.), exécuter la commande suivante dans STRSQL :

SELECT * FROM qtemp/RSTMAP400 WHERE RSOSTA = '0'