Define data local
1 #KCSWIFTA-PARMS
2 #KCSWIFTA-IN-PARMS
3 #KCSWIFTA-IN-CHAR A 1
R 3 #KCSWIFTA-IN-CHAR
4 #KCSWIFTA-IN-CHAR-ARRAY A 100
3 #KCSWIFTA-IN-LENGTH N 5
2 #KCSWIFTA-OUT-PARMS
3 #KCSWIFTA-OUT-BASIC-HEADER
4 #KCSWIFTA-OUT-BH-APPL-ID A 1
4 #KCSWIFTA-OUT-BH-SERVICE-ID N 2
4 #KCSWIFTA-OUT-BH-ORIG-ADDR A 12
4 #KCSWIFTA-OUT-BH-SESSION-NO N 4
4 #KCSWIFTA-OUT-BH-MSG-SEQ-NO N 6
3 #KCSWIFTA-OUT-OUTPUT-APPL-HEADER
4 #KCSWIFTA-OUT-OH-IO-TYPE A 1
4 #KCSWIFTA-OUT-OH-MSG-TYPE N 3
4 #KCSWIFTA-OUT-OH-INPUT-DATE D
4 #KCSWIFTA-OUT-OH-INPUT-TIME T
01 #IDX-1 (N05)
01 #IDX-2 (N05)
end-define
FOR #IDX-1 1 TO C*MESSAGE-CONTENT
ASSIGN #MESSAGE-CONTENT =
INCOMING-MESSAGE-QUEUE.MESSAGE-CONTENT(#IDX-1)
FOR #IDX-2 1 TO 100
ADD 1 TO #KCSWIFTA-IN-LENGTH
ASSIGN #KCSWIFTA-IN-CHAR ( #KCSWIFTA-IN-LENGTH) :=
#MESSAGE-CONTENT-BYTES ( #IDX-2 ) END-FOR
What is the use of ASSIGN #MESSAGE-CONTENT =
INCOMING-MESSAGE-QUEUE.MESSAGE-CONTENT(#IDX-1) statement ?