Convert MSGFILEs and MAIL Files

Convert MSGFILEs and MAIL Files
tpxsm
Batch facility commands can be used to convert MSGFILEs to MAIL files that can be used by CA TPX. The MAIL file is a VSAM file that is used by the Mail facility.
The batch commands can be used to convert a MSGFILE into a MAIL file and to convert a MAIL file into a MSGFILE.
Convert Information from a MSGFILE
The CONVERT command will convert information from a MSGFILE into a MAIL file.
->>--- CONVERT ---MSGFILE------- TO -------------- MSGFILE ---->< +-- REPLACING --+
Operand Explanations
The CONVERT statement for MSGFILEs has the following operands:
  • TO
    Indicates that any information already in the MAIL file will not be changed.
  • REPLACING
    Indicates that any information in the MSGFILE that matches information in the MAIL file will replace that in the MAIL file.
Example
An administrator wants to convert the MSGFILE into a VSAM MAIL file. The MAIL file is new, so the administrator is unconcerned about information in the MAIL file. The administrator includes the following statement in a batch job:
CONVERT MSGFILE TO MAIL
The file is converted. The MAIL file now includes the information that was in the MSGFILE.
Convert Information from a MAIL File
The CONVERT command will convert information from a MAIL into a MSGFILE.
->>--- CONVERT ---MAIL------- TO ---------------- MSGFILE --->< +-- REPLACING --+
Operand Explanations
The CONVERT statement for MAIL files has the following operands:
  • TO
    Indicates that any information already in the MSGFILE file will not be changed.
  • REPLACING
    Indicates that any information in the MAIL file that matches information in the MSGFILE will replace that in the MSGFILE.
Example
An administrator wants to convert the contents of a MAIL file so it can be used with an earlier version of TPX. The administrator wants to make sure that the information in the MAIL file overwrites matching information in the MSGFILE. The administrator includes the following statement in a batch job:
CONVERT MAIL REPLACING MSGFILE
The file is converted. The MSGFILE now includes the information that was in the MAIL file.