The Restore icon

EC Gateway supports archiving of any and all files used within the system. After files are archived, clicking the Restore icon within the EC Gateway selection window displays a menu that provides Extract and Restore buttons. They are described in Table 7-4.

Table 7-4: Extract and Restore fields

Fields

Description

Extract

If you want to extract a file, left-click on the Extract option.

Restore

To restore a file that has been previously archived, left-click on the Restore option.

If you click the Restore option, the Restore window displays. The restore function restores the entire file exactly as it was before it was archived. Each archive, which has been processed within the EC Gateway application, is listed in the Restore window, with file name, archive date and time (24-hour clock), and the archive directory. The columns can be sorted by clicking their headings. Click OK to restore the selected file or Delete Record to delete the selected archive.

If you check the Delete Source File check box and then click OK, the archived file and the archived record will be deleted after it is restored. If you do not check the Delete Source File check box, the archived file continues to exist after you have restored the file.

If you select Extract, the Archive Extraction – Log window displays. This window allows you to find processed EDI files by means of information in the log database. You can extract specific sections from the located file.

Enter the DSN, User Name, and Password for the Log ODBC connection in the upper-left corner of the window. Enter the search criteria in the fields in the lower left of the window. Include the start date, end date, transaction name, trading partner name, and the direction type. Use of the search criteria is optional. Select the Get Log button.

The transaction header records that satisfy the search criteria display in the right side of the window. Highlight a record and select the Get Archive button. The Archive Extraction – Extract window displays.

The Log Record section at the top of the window identifies the record that you selected. The middle part of the window displays the archived files that were obtained in your previous search. This list of files is limited to the first 200 files archived within 24 hours of the transaction processing.

The Extract section at the bottom of the window allows you to define the extraction. The Extract Interchange check box extracts the whole interchange section in the processed EDI file that the selected transaction belongs to. This includes data for the interchange and group. The Extract Transaction check box extracts the selected transaction section in the EDI file along with the related data for the interchange and group. The Directory field specifies the directory used to store the extracted item. Its default is the subdirectory retrieve of the working directory. The File Name field is the name of the new file containing the extracted information. Its default is the archived file name plus the interchange number or transaction number. Specify the Directory and File Name that you want and select the Extract button.

Click the View EDI File button to display the extracted EDI file contents.

If the archived file is on the remote machine, define in the system the destination address and port number for the archive and the wsocksvr running on the remote machine. When you click Extract, the archived file is copied to a temporary file in the Temp subdirectory of the working directory on the local machine. After extraction this temporary file is deleted.