IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how will the application program which mfs maps to use...


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
girish_s

New User


Joined: 31 Jul 2007
Posts: 45
Location: india

PostPosted: Thu Aug 02, 2007 9:20 pm
Reply with quote

hi all,
I have created a mfs map and an online program in cobol now where in the program do i specify the name of the map?? when using cics and cobol we specify include mapset name in the cobol program similarly i want to know where do i specify the mfs name in the program???
thanks in advance...
Back to top
View user's profile Send private message
rajesh_1183

Active User


Joined: 24 Nov 2005
Posts: 121
Location: Tadepalligudem

PostPosted: Fri Aug 03, 2007 11:18 am
Reply with quote

As you will be mentioning the transaction code in the MFS, the Tran code will automatically invokes the program associated with it. You need to issue GN or GU calls for retreieving the data from the screen. And based on the PF key that was pressed you will code your program as per the requirements...There will not be any commands like include mapset etc....as in CICS...only thing is you will specify the MID and MOD copybooks in the COBOL program. I think it is better that if you go once thru Steve Eckolos book IMS DC for COBOL programmers which gives you some basic idea on how the IMS DC behaves...

Thanks,
Rajesh
Back to top
View user's profile Send private message
girish_s

New User


Joined: 31 Jul 2007
Posts: 45
Location: india

PostPosted: Fri Aug 03, 2007 9:07 pm
Reply with quote

hi rajesh,
thanks a lot for the reply.. what did u mean by sayin copy books of mid and mod??? are u refering to the i/o area in the cobol program...???
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Sat Aug 04, 2007 3:13 am
Reply with quote

Screens are defined in working storage - just like a file would be. They must align with your MFS. An application program may use several screens. When you insert your screen (MFS) to the message que, you must tell it which screen to insert.
As Rajesh said, sometimes it is easier to make the screens copybooks. They will still go in working storage.
Back to top
View user's profile Send private message
girish_s

New User


Joined: 31 Jul 2007
Posts: 45
Location: india

PostPosted: Mon Aug 06, 2007 11:39 am
Reply with quote

hi,
now this really sounds new to me... how do i make the copy books of the screens in the cobol program??? examples plz..
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Tue Aug 07, 2007 1:20 pm
Reply with quote

Quote:
how do i make the copy books

I believe you know how to create copybooks.

Have you coded MFS?
Have you identified MID and MOD fields?
Back to top
View user's profile Send private message
girish_s

New User


Joined: 31 Jul 2007
Posts: 45
Location: india

PostPosted: Tue Aug 07, 2007 2:18 pm
Reply with quote

hi devzee,
thanks for the reply... i have coded mfs and also identified the mid and mod fields...now do i have to use copy mapset command as in the case of cics??
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Tue Aug 07, 2007 5:00 pm
Reply with quote

You are confused between the CICS copy command and COBOL copybooks. Copybooks contain cobol code. They just make it easier when you are using code in multiple programs. If your screens are only used in one program, it is not necessary to make a copybook.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts 10 byte RBA conversion -non applicati... JCL & VSAM 1
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top