Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
No replies
stal
stal
1 Post
ACCEPTED ANSWER

Pinned topic MFS DOF structure preparation for COBOL

‏2012-05-23T09:20:52Z |
Hi Friends,
I have a doubt regarding MFS handling in IMS DC programs. Please help.

This is regarding message out (MOD) structure coded in an IMS DC MPP COBOL programs. In the MOD structure, some fields are coded with a preceding attribute field (S9(4) comp) and some fields are coded with out the attribute field.
01 MESSAGE-OUT.
10 FIELD-A PIC X(014).
10 FIELD-B.
15 FIELD-B-ATTR PIC S9(4) COMP.
15 FIELD-B-VALUE PIC X(10).

The MFS code(MOD) for this field is as follows.
MFLD FIELD-A,LTH=14
MFLD FIELD-B,LTH=10

My understanduing is that we need to code FIELD-B-ATTR field only if we code ATTR=YES parameter in the MOD of the MFS. But I see this difference in the base code(ATTR=YES parameter not coded for FIELD-B). Am I missing something?. Please clarify.