View previous topic :: View next topic |
Author |
Message |
gbw Beginner
Joined: 02 Dec 2002 Posts: 8 Topics: 7 Location: New Jersey
|
Posted: Sun Apr 20, 2003 8:50 pm Post subject: MFS..... |
|
|
Hi everybody,
The way in CICS we define BMS maps in a member and copy that member/mapset into our CICS program to make use of the screen field we just defined; How should we achieve the same using MFS in IMS?
I mean when we define Screen Details using MFS inside a Copybook member where do we specify in a program to make use of those fields? I tried to find a copy statement for that Copybook and did not find any.
Thanks. |
|
Back to top |
|
|
hari_uss Beginner
Joined: 19 Dec 2002 Posts: 78 Topics: 6 Location: Trivandrum, India
|
Posted: Mon Apr 21, 2003 12:52 am Post subject: |
|
|
You don't need to use MFS copybook names in your program. Look at the I/O call by which your program gets messages. There will be
Code: |
CALL 'CBLTDLI' USING DLI-GU
IO-PCB-MASK
INPUT-MSG-IO-AREA.
|
Now, look at your working storage area and there will be the definition of INPUT-MSG-IO-AREA. The elements present there will be matching with the fields in MID area of your MFS. I.e., if you add a input field in your MFS, you have to declare it in INPUT-MSG-IO-AREA and then use it in your program. (Probably, INPUT-MSG-AREA will be nothing other than a copybook).
Similar is the case with OUTPUT-MSG-AREA also. If you introduce a new output field in MOD of MFS, add that element in the OUTPUT-MSG-AREA of your program, move data into it and do an ISRT, to display value of the newly added field in screen.
Hope this helps..
-----
Hari. |
|
Back to top |
|
|
gbw Beginner
Joined: 02 Dec 2002 Posts: 8 Topics: 7 Location: New Jersey
|
Posted: Mon Apr 21, 2003 8:27 am Post subject: |
|
|
Hari,
Many Thanks for the Reply !
2 more questions:
1. I found the details (matching fields in MFS copybook and the fields defined under linkage section in a program).
If they are coded inside the program why they are defined in a copybook under Type=MFS and I see no direct or indirect connection to the copybook. Looks like they are 2 different entities. How are they connected?
Will you please throw some light on it?
2. Suppose I am adding 2 new fields on the screen only for display that means user will not insert any thing in those 2 fields. Do I still need to add these 2 new fields on the MID area or not necessary; adding only in MOD area is okay?
Thanks ! |
|
Back to top |
|
|
|
|