decedi_dlg(8) — Maintenance
Name
decedi_dlg − The decedi_dlg command is a utility that will generate data label definitions for DEC/EDI on a user’s behalf. This utility can create data labels for an entire version of a standard or it can generate data labels specific to a trading partner specific definition of a document within the standard and version. The aim of this utility is to reduce the amount of set up a user has to do when installing versions of a standard into DEC/EDI.
This utility will generate data labels in a variety of formats based on the user’s selection. These formats are:
•
<Segment ID> + <Element position > [ + <Sub-element position> ]
•
<Segment ID> + <Element ID> [ + <Sub-element ID> ] [ + <Repeat Count>]
The various parts of the data label can also be separated with an optional separator which can be one of:
•A hyphen ("-")
•An underscore ("_")
FORMAT
decedi_dlg -s=standard -v=version [-f=format] [-d=delimiter] [-w=width] [-p=partner_name -d=document_name] [-g=group_name -d=document_name]
Flags
-s=standardSpecifies the edi standard for which data labels are to be generated, where standard can be one of:
• EDIFACT
• ODETTE
• X12
• TDCC
• TRADACOMS
This flag is mandatory.
-v=versionSpecifies the version of the edi standard for which data labels are to be generated.
This flag is mandatory.
-f=formatSpecifies the format the data labels are to be generated to, where format can be one of:
POS, <Segment ID> + <Element position > [ + <Sub-element position> ] . This is the default.
ID, <Segment ID> + <Element ID> [ + <Sub-element ID> ] [ + <Repeat Count>].
-d=delimiterSpecifies the delimiter to use between field parts in the data label, where delimiter can be one of :
HYPHEN, ’-’.
UNDER, ’_’. This is the default.
NONE, No separator.
-w=widthSpecifies the minimum width of either the element/sub-element position fields or for the repeat count field (depending upon the data label format that was selected). The width specifies how many digits to use for the element/sub-element field or the repeat count field. If the actual value of these fields requires less digits than the width, then the field will be zero filled to the width. If the actual value requires more digits than the width, then the actual value will appear with no leading zeros. To suppress zero filling, enter a width of 1.
By default, width is set to 1.
-p=partner_nameSpecifies a specific trading partner’s data labels are to be generated. This is used in combination with the -o option. When these two flags are set, then trading partner specific data labels for the trading partner and document combination will be generated.
-g=group_nameSpecifies a specific trading group’s data labels are to be generated. This is used in combination with the -o option. When these two flags are set, then trading group specific data labels for the trading group and document combination will be generated.
-o=document_nameSpecifies a specific document for which trading partner or trading group specific data labels are to be generated. This is used in combination with the -p or -g options.
Examples
# decedi_dlg -s=EDIFACT -v=921 -f=ID
DEC/EDI Data Label Generator V3.0
Now generating the data labels... please wait
processing segment AGR
processing segment AJT
processing segment ALC
processing segment ALI
processing segment API
processing segment APR
processing segment ARD
processing segment ATT
processing segment AUT
processing segment BGM
processing segment BII
processing segment BUS
processing segment CCI
processing segment CNI
processing segment CNT
processing segment COM
processing segment COT
processing segment CPI
processing segment CPS
processing segment CST
processing segment TDT
processing segment TEM
processing segment TMD
processing segment TMP
processing segment TOD
processing segment TPL
processing segment TSR
The data labels were successfully generated
NOTE: Data labels are cached, so replace the relevant tables cache for these
data labels to take effect.
Now exiting the Data Label Generator...
In this example, the data labels for EDIFACT Version 921 are being generated, based on the ID format, and utilising the defaults of a minimum width of 1, and underscore as the field separator.