文档章节

swift结构

j
 jd16manson
发布于 2016/04/17 18:06
字数 1085
阅读 18
收藏 0

SWIFT message types

SWIFT messages consist of five blocks of data including three headers, message content, and a trailer. Message types are crucial to identifying content.

swift包含五个数据块,包括三个头,正文,文件尾

All SWIFT messages include the literal "MT" (Message Type). This is followed by a 3-digit number that denotes the message type, category, and group. Consider the following example, which is an order to buy or sell via a third party:

所有Swift包括文本MT,跟着三位数表明了报文类型,种类和组

MT502The first digit (5) represents the category. A category denotes messages that relate to particular financial instruments or services such as Precious Metals, Syndications, or Travelers Checks. The category denoted by 5 is Securities Markets.

第一个5代表种类,此种类和特别金融机构相关,比如贵金属,辛迪加或旅行支票,5代表证券市场

The second digit (0) represents a group of related parts in a transaction life cycle. The group indicated by 0 is a Financial Institution Transfer.

第二个0代表在交易生命周期中相关的部分,0代表金融机构资金调拨

The third digit (2) is the type that denotes the specific message. There are several hundred message types across the categories. The type represented by 2 is a Third-Party Transfer.

第三个2是指明特别信息,此类型代表第三方传输

Each message is assigned unique identifiers. A 4-digit session number is assigned each time the user logs in. Each message is then assigned a 6-digit sequence number. These are then combined to form an ISN (Input Sequence Number) from the user's computer to SWIFT or an OSN (Output Sequence Number) from SWIFT to the user's computer. It is important to remember that terminology is always from the perspective of SWIFT and not the user.

The Logical Terminal Address (12 character BIC), Day, Session and Sequence numbers combine to form the MIR (Message Input Reference) and MOR (Message Output Reference), respectively.

For a full list of SWIFT message types, see All Things SWIFT: the SWIFT User Handbook.



SWIFT field structure

域结构

This section discusses the SWIFT field structure. A field is a logical subdivision of a message block A, which consists of a sequence of components with a starting field tag and delimiters.

域是blockA的逻辑细分,由一个带有开始域标签和分隔符的序列组成

A field is always prefaced by a field tag that consists of two digits followed, optionally, by an alphabetic character. The alphabetic character is referred to as an option. For example, 16R is a tag (16) with an option (R) that indicates the start of a block; 16S is a tag (16) with an option (S) that indicates the end of a block. A field is always terminated by a field delimiter. The delimiter depends on the type of field used in a message block.

一个域一般由包含两位数域标签作序,可选的,和一个字母,字母代表了一个选项,举例,16R是一个标签16和一个选项R指示了块的开始,16S是一个标签16和一个选项S指示了块的结束,域总是以域分界符结束,分界符取决于块中使用的域的类型

There are two types of fields used in SWIFT messages: generic and non-generic. The type of field used in a SWIFT message block is determined by the Message Type. What follows is a discussion of these SWIFT field structures. For more on generic and non-generic fields and how to distinguish between them, see Part III, Chapter 3 of the SWIFT User Handbook

有两种SWIFT报文,一般的或者非泛型的,


Note:The symbol CRLF shown below is a control character and represents carriage return/line feed (0D0A in ASCII hex, 0D25 in EBCDIC hex).

Non-generic fields

The structure of non-generic fields in SWIFT message blocks is as follows:

:2!n[1a]: data content<CRLF>

非泛型域格式

where:

: = mandatory colon

必要的冒号


2!n = numeric character, fixed length

数字字符,固定长度

[1a] = one optional alphabetic character, letter option

: = mandatory colon

一个可选的字母=必要的冒号

data content = the data content, which is defined separately for every tag

<CRLF> = field delimiter

The following is an example of a non-generic field:

:20:1234<CRLF> :32A:...<CRLF>

Note:In some cases (such as with the tag 15A... n), the data content is optional.

Generic fields

The structure of generic fields in SWIFT messages is as follows:

:2!n1a::4!c'/'[8c]'/'data content

where

:2!n1a: = same format as non-generic fields, except that 1a is mandatory

: = mandatory second colon (required in all generic fields)

4!c = qualifier

'/' = first delimiter

[8c] = issuer code or Data Source Scheme (DSS)

'/' = second delimiter

data content = See Part III, Chapter 3 of the SWIFT User Handbook for the format definition

Note:Non-generic fields and generic fields cannot share the same field tag letter option letter. In order to distinguish between them easily, a colon is defined as the first character of the column Component Sequence. Generic fields are defined in the same section (Part III, Chapter 3 of the SWIFT User Handbook) as the non-generic fields.

The following character restrictions apply to generic field data content:

  • Second and subsequent lines within the data content must start with the delimiter CRLF.
  • Second and subsequent lines within the data content must never start with a colon (:) or a hyphen (-).
  • The data content must end with the delimiter CRLF.



一个field可能有多个option,用a表示,一个option对应一个format,但一个option可以有多个qulifier

© 著作权归作者所有

共有 人打赏支持
上一篇: excel
j
粉丝 0
博文 24
码字总数 21000
作品 0
南京
私信 提问
Swift讲解专题十——类与结构体

Swift讲解专题十——类与结构体 一、引言 Swift中的类与结构体十分相似,和Objective-C不同的是,Swift中的结构体不仅可以定义属性,也可以像类一样为其定义方法。 Swift中的类与结构体有如下...

珲少
2016/05/16
98
0
swift4.1 学习回顾(9--16)

上一篇中,回顾了一到八节的内容,以及主要的知识点。本次学习做的不太好的一点就是没有及时的回顾,总是在不停的学习新知识,以至于前面的知识遗忘的比较多。现在回顾有一点亡羊补牢的感觉。...

小曼Study
11/12
0
0
Swift 个人学习笔记 - 08: 类和结构体

本文章纯粹是中文版《The Swift Programming Language》的学习笔记,所以绝大部分的内容都是文中有的。本文是本人的学习笔记,不是正式系统的记录。仅供参考 以下还是有很多没看懂、不确定的...

amc
2017/03/10
0
0
【译】Swift算法俱乐部-二维数组

本文是对 Swift Algorithm Club 翻译的一篇文章。 Swift Algorithm Club是 raywenderlich.com网站出品的用Swift实现算法和数据结构的开源项目,目前在GitHub上有18000+⭐️,我初略统计了一下...

Andy_Ron
09/25
0
0
Swift-001-Swift简介及基础语法

1.Swift简介 2014年WWDC 发布的新开发语言,可与OC共同运行于Mac OS 和 iOS 平台,用于搭建基于苹果平台的应用程序。 swift2.0之后的语法则趋于稳定,2017年发布的swift4.0虽有改动,但也只是...

胡锦涛_Steven
07/16
0
0

没有更多内容

加载失败,请刷新页面

加载更多

二十分钟教你如何将区块链应用与函数计算相结合

前言 本篇文章适合对区块链应用感兴趣或是想要通过函数计算服务进一步开发区块链应用的新人。本文将结合阿里云区块链服务、阿里云函数计算服务、阿里云日志服务 以及社区应用 Marbles,手把手...

阿里云官方博客
12分钟前
1
0
Double数相加后结果不准确

在我们进行两个double运算时,例如:2..0-1.1 不是想象的输出0.9,而是0.89999999999999999。其主要原因是浮点数值采用二进制系统表示,而在二进制系统中无法精确的表示分数1/10。这就好像十...

嘴角轻扬30
19分钟前
1
0
去除移动端点击效果

移动端点击时,会有一个类似active的短暂背景淡出效果,去除该效果可使用 -webkit-tap-highlight-color: rgba(255, 0, 0, 0);

originDu
21分钟前
1
0
腾讯云与MariaDB 基金会签署战略合作,共建全球开源生态圈

本文由云+社区发表 腾讯云日前与MariaDB基金会正式签署战略合作协议,2019年,腾讯云将继续以白金会员身份为基金会的发展提供强有力的资源支持,与MariaDB全球用户和开发者一道,共建开放共赢...

腾讯云加社区
26分钟前
2
0
Kotlin的SAM(Single Abstract Method)

今天有人在群里问kotlin支持SAM的问题,其实kotlin不支持SAM,因为人家支持FP(function programing) package reactinterface Test { fun print()}class TestInterface(var...

SuShine
27分钟前
1
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部