MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MFS.....

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS
View previous topic :: View next topic  
Author Message
gbw
Beginner


Joined: 02 Dec 2002
Posts: 8
Topics: 7
Location: New Jersey

PostPosted: Sun Apr 20, 2003 8:50 pm    Post subject: MFS..... Reply with quote

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
View user's profile Send private message
hari_uss
Beginner


Joined: 19 Dec 2002
Posts: 78
Topics: 6
Location: Trivandrum, India

PostPosted: Mon Apr 21, 2003 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
gbw
Beginner


Joined: 02 Dec 2002
Posts: 8
Topics: 7
Location: New Jersey

PostPosted: Mon Apr 21, 2003 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> IMS All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group