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

Multiple entries for same program in PPT


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Wed Nov 11, 2009 7:35 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Nov 11, 2009 7:50 pm
Reply with quote

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

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Wed Nov 11, 2009 8:27 pm
Reply with quote

Hi Robert,
Thanks for the suggestions... icon_smile.gif

Quote:
You would either need to compile multiple versions of PGMA with different names
I was afraid of this... icon_razz.gif

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... icon_cool.gif
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Wed Nov 11, 2009 8:41 pm
Reply with quote

This Link will take you to the manual page that discusses assignment of an ALIAS during the LinkEdit/Bind process.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Nov 11, 2009 8:51 pm
Reply with quote

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

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Nov 12, 2009 9:27 am
Reply with quote

Thanks all for the suggestions... icon_smile.gif

@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.. icon_razz.gif .. 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.. icon_smile.gif


@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... icon_biggrin.gif
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 !!! icon_razz.gif .. 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... icon_razz.gif
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Thu Nov 12, 2009 6:44 pm
Reply with quote

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... icon_redface.gif
Back to top
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Fri Nov 20, 2009 10:19 am
Reply with quote

Hi All,

Thanks for all your ideas / clarifications... icon_smile.gif

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... icon_biggrin.gif

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
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 -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top