View previous topic :: View next topic
|
Author |
Message |
girish_s
New User
Joined: 31 Jul 2007 Posts: 45 Location: india
|
|
|
|
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 |
|
|
rajesh_1183
Active User
Joined: 24 Nov 2005 Posts: 121 Location: Tadepalligudem
|
|
|
|
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 |
|
|
girish_s
New User
Joined: 31 Jul 2007 Posts: 45 Location: india
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
girish_s
New User
Joined: 31 Jul 2007 Posts: 45 Location: india
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
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 |
|
|
girish_s
New User
Joined: 31 Jul 2007 Posts: 45 Location: india
|
|
|
|
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 |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
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 |
|
|
|