View previous topic :: View next topic
|
Author |
Message |
yashu_mys
New User
Joined: 09 Nov 2003 Posts: 4 Location: India
|
|
|
|
Hi Everyone ,
This question is bothering me for a while .
In CICS suppose there is a screen it is actually a BMS program
isn't it..?when ever we enter some data in the fields and hit
an enter the back end cobol program is invoked .In the cobol program
the BMS is identified through symbolic map .Now my question is how does
the BMS program or CICS knows which COBOL program to invoke..?Some
people said it is due to the presence of the corresponding symbolic
maps in the corresponding COBOL programs .Now If the symbolic map of
the same BMS map is present in 3-4 COBOL program which COBOL program does the CICS call when the screen of that BMS map is used
Thanks ,
Yashvanth . |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
Hello yashu_mys,
I think thats why the TRANS ID are there..right?
Regards
Mayuresh Tendulkar |
|
Back to top |
|
|
yashu_mys
New User
Joined: 09 Nov 2003 Posts: 4 Location: India
|
|
|
|
Hi ,
But what is trans-id ..? It invokes a task that has a set of programs associaed with it.What I am asking is how does the every BMS map is associated with the back end COBOL program .Dont say through the symbolic map ...cause there are 3-4 COBOL programs with the same symbolic map then which COBOL programs is called when the BMS map associated with that symbolic map is used .
Thanks ,
Yash . |
|
Back to top |
|
|
krbabu
New User
Joined: 20 Feb 2004 Posts: 57
|
|
|
|
Hi yashu,
that might be due to improper delaration of PCT and PPT table declarations.
Can you again check for the both tables. |
|
Back to top |
|
|
harikrishnanrajeev
EXPERT
Joined: 28 Jan 2004 Posts: 37 Location: Trivandrum
|
|
|
|
Hi Ashvant,
Am giving the answers which i know. Ur question was when a map is triggered say by pressing enter key , how a corresponding cobol prog gets called.... isn't it ..... or how we know which cobol prog has to be called.....
ok i believe the seqeunces we follow in the case of map and trans id creation is
1. Def and install map
2. Def and install program.
3. Def and install transaction.
So here while defining transaction ... in the CEDA panel we have provision for specifying the program name associated. Thus we can give the cobol prog name here....
Then another thing is that the map is invoked first by a
exec cics send map() mapset() end-exec command from cobol
this can be followed by a return statement giving the trans id
ie
exec cics return transid() commarea() end-exec
thus here the program invokes the map by specifying the map name and the return statement from the map will have the transid which helps in retaining the relation between the map and the program.
Any body who find these writings wrong pls respond with corrections.
Thanks and regards
Hari. |
|
Back to top |
|
|
michaeldevine
New User
Joined: 29 Sep 2004 Posts: 1
|
|
|
|
hi, correct me if Im wrng, but isnt it a COBOL program that uses the map responsible for collecting the info entered into the map...? so where is the ambiguity ?... the sym map is copied into the prg and the prg sends the map to the scr, and recieves the info...so the prg is always in control of the map !!
mike |
|
Back to top |
|
|
chandrasekhar
New User
Joined: 29 Sep 2004 Posts: 35 Location: bangalore
|
|
|
|
PLZ CORRECT ME IF I AM WRONG
THROUGH A TRANS ID A PROGRAM IS CALLED. THEN PROGRAM IS EXECUTED STEP BY STEP. CONTROL RETURNS WHERE IT COMES.
HENCE AFTER ENTERING DATA IN A MAP CONTROL GOES TO THAT PROGRAM OBVOUSLY
THANKS |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Yash,
Here's a simpified view of what happens when a map is sent/recvd from a user term.
First off, a Map is not a pgm despite the fact that it is Assembled like a pgm. It contains only data, no executable instructions.
Some of that data is included in each pgm that requires it via a COPY stmt. This COPY data can be used by any number of pgms concurrently
When a map is sent or received the pgm requests the CICS system to execute the sub system responsible for moving data to/from the user terms. Before transferring cntl CICS saves the return address that points to the NSI of the requesting pgm.
When the function is completed CICS uses that address to return cntl to the requesting pgm. From there the pgm continues execution. |
|
Back to top |
|
|
srisurya_12
New User
Joined: 19 Jul 2005 Posts: 1
|
|
|
|
can any body can give me the list of ISPF COMANDS |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Quote: |
can any body can give me the list of ISPF COMANDS |
Start a new topic for that... |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
hai yashu. you are right with the question. your map gets associated with the corresponding program as we enter the definition and installation entries for the program and the map. there won't be any confusions with this. moreover, even if the map is used by more than a program there won't be any logical flaws as it is only my program getting executed.
let me tell you some more info. all the transactions performed in the mainframes environment are almost cics based if i'm right. for example consider the validation of the user-id and the password when you enter the mainframes environment. you interact with a cics map. that's it.
everyday, the cics system by itself or the admin runs the jcl job whose main job step is to load the system tables and programs. only in these tables and programs, we enter the info for registering the program and install it.
hope that i've helped you. corrections are welcomed.......
gowtham |
|
Back to top |
|
|
|