View previous topic :: View next topic
|
Author |
Message |
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi All,
Is it possible in CICS that a program can be referred by more than one name...
Say I have a program - PGMA. If my programs have statements like
LINK PGMA1
LINK PGMA2
LINK PGMA3
I would like all PGMA1, PGMA2, PGMA3 to execute the PGMA program..
My initial thought was the same can be defined in PPT with the above mentioned details. But I couldnt find any reference to this...
Need confirmation whether this can be done in PPT. Or would be glad to receive some suggestions on how to go by it... |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
A PPT entry represents a load module in the DFHRPL. You would either need to compile multiple versions of PGMA with different names or use ALIASes during your linkage edit / bind step. |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi Robert,
Thanks for the suggestions...
Quote: |
You would either need to compile multiple versions of PGMA with different names |
I was afraid of this...
Quote: |
use ALIASes during your linkage edit / bind step |
Have not used the ALIASES option so not sure on this.. Tried to get the info but so far have failed.. Could i know where i could the information on the ALIASES option...
Also... am not sure if this will effect or change anything.. but forgot to mention my programs are in Assembler... |
|
Back to top |
|
|
Ronald Burr
Active User
Joined: 22 Oct 2009 Posts: 293 Location: U.S.A.
|
|
|
|
This Link will take you to the manual page that discusses assignment of an ALIAS during the LinkEdit/Bind process. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
there are several ways to technically get around this problem,
but you are overlooking, what I consider, a major problem:
how is the next guy going to understand this easily?
short of modifying all the invoking modules LINK statement (as there could be many)
you could modify the PGMa1,...a2,...a3 to immediately invoke PGMA.
that would be easy to follow.
I mention this Binop, since you seem to be the assembler man in your shop, yet do not know about alias........
how would you expect junior members of your staff to see this immediately?
a quick change for you could become a nightmare for someone to follow. |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Thanks all for the suggestions...
@Ronald
Quote: |
This Link will take you to the manual page that discusses assignment of an ALIAS during the LinkEdit/Bind process. |
I looked into this option and tried understanding it... Guess its a little too much as of now to get into my head.. .. will continue looking into it today...
Just for confirming i did see some reference to UNIX.. hope that they are only for the SYM options that are mentioned..
@Dick
Quote: |
how is the next guy going to understand this easily? |
Currently one idea we are having is to pass the program name by the COMMAREA...
Another thought I could use is to use the option what Bill has suggested in this thread... Need to understand the feasibility..
Quote: |
short of modifying all the invoking modules LINK statement (as there could be many)
you could modify the PGMa1,...a2,...a3 to immediately invoke PGMA. |
I guess this is a nice suggestion... Will look into the feasibility of this and let u know.. Thanks a lot...
Quote: |
I mention this Binop, since you seem to be the assembler man in your shop, yet do not know about alias........
how would you expect junior members of your staff to see this immediately? |
Am flattered !!! .. I do not why u thought I am a assembler man... but actually I am pretty new to Assembler (3 - 4 months) and still working my way into it... Its not as easy as other languages... |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi All,
Quote: |
Another thought I could use is to use the option what Bill has suggested in this thread... |
Sorry.. mentioned the wrong thread... Please refer to this particular discussion...
Apologize for the confusion... |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi All,
Thanks for all your ideas / clarifications...
Posting how we have decided to go by with the issue...
We have decided to go by the tranditional way of changing all the calling programs... and having a indicator in the COMMAREA to represent how the particular program was callled.
Quote: |
Quote: |
short of modifying all the invoking modules LINK statement (as there could be many)
you could modify the PGMa1,...a2,...a3 to immediately invoke PGMA. |
I guess this is a nice suggestion... Will look into the feasibility of this and let u know.. Thanks a lot... |
We discussed this suggestion but thought that might take too much effort. Our initial analysis was showing around 700 occurences of this kind of call which involves around 150 actual programs called by another 250 names.
I am noticing now only that i had not posted the reason as to why we are doing this... Currently in the system, in another environment, the above mentioned programs are called with different names (referred to as vectors here). We are trying to simulate the same in CICS. |
|
Back to top |
|
|
|