Skip to main content
Skip table of contents

CPYEFFEDI, copy or move Edifact file

Usage

With the command CPYEFFEDI EDIFACT files can be copied or moved to other IFS directories due to the intelligent recognition of the content.

The command is to be used in the i-effect server as *IFS SINGLE, *SCHEDULE or *MONITOR job.

Parameters and their meaning

The command has the following parameters

Parameter

Wert

Beschreibung

FRMIFSFILE

Qualified name of the input file in the IFS file system.  

TODIR
Directory for output file.
DELETE

Specifies whether the input file must be deleted after successful processing.


*NOThe input file is not deleted. (default)

*YESThe input file is deleted.    
PARMS

This is where you define the contents to be examined, if they match, the input file will be copied or moved.

Supported EDI variables are entered in the data element "Name". The value to be searched for is entered in the "Value" element.


%UNB_ORIGINATOR% Sender from the UNB segment

%UNB_ORIGINATORQ% Sender Qualifier from the UNB segment

%UNB_RECIPIENT%Recipient from the UNB segment

%UNB_RECIPIENTQ%Recipient Qualifier from the UNB segment

%UNB_INTREF%  Interchange reference number from the UNB segment

%UNH_MESSAGETYPE% EDIFACT Message Type from the UNH segment

%UNH_MESSAGEVERSION%  EDIFACT Message Version from the UNH segment

%UNH_MESSAGERELEASE% EDIFACT Message Release from the UNH segment

%UNH_MESSAGEAGENCY%   EDIFACT Controlling Agency from the UNH segment

Application example

Move files with the message type "SLSRPT" and sender GLN "4332243000001" to the "/tmp/in" folder

Here is an example of a job in the *SERVER module of i-effect where the file to be processed is communicated by a *MONITOR, *SINGLE or *SCHEDULE job via the parameters %IFSPATH%/%IFSFILE%.

CODE
CPYEFFEDI  FRMIFSFILE('%IFSPATH%/%IFSFILE%') TODIR('/tmp/in') DELETE(*YES) PARMS(('%UNH_MESSAGETYPE%' 'SLSRPT') ('%UNB_ORIGINATOR%' '4332243000001'))
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.