MFS DOF structure preparation for COBOL



IBM's hierarchical database management system with a Database Manager (IMS DB) and a Transaction Manager(IMS DC)

MFS DOF structure preparation for COBOL

Postby humble » Fri May 11, 2012 9:32 am

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.
humble
 
Posts: 9
Joined: Thu Mar 01, 2012 5:01 pm
Has thanked: 0 time
Been thanked: 0 time

Re: MFS DOF structure preparation for COBOL

Postby BillyBoyo » Fri May 11, 2012 2:07 pm

I don't know anything specific about what you are talking about, but..

It looks like FIELD-B is expected to be of a variable size, with a maximum of 10, unlike the FILED-A which is presumably a fixed size of 14. Has the "ATTR" in the data definition been hand-coded? Possibilities are that LTH gives a default ATTR, LTH is not an ATTR and is misnamed in the data definition. Something else.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: MFS DOF structure preparation for COBOL

Postby humble » Mon May 14, 2012 11:17 am

Hi Billy Boyo,
As per my understanding ATTR field is for the field attributes like underlining, highlight etc.
I believe IMS-DC MFS doesn't support variable length field.
humble
 
Posts: 9
Joined: Thu Mar 01, 2012 5:01 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IMS DB/DC

 


  • Related topics
    Replies
    Views
    Last post