View previous topic :: View next topic
|
Author |
Message |
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
I have 2 programs, let's say, pgma, pgmb.
pgma LINK pgmb,
pgmb LINK pgma.
as pgma is linked by pgmb conditionally, there will no chance of dead loop.
my quesiton is: does pgma need some special parameter for compiling? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Not necessarily true. PGMA and PGMB would both have to know not to do it, potentially. Depends on what you've coded. |
|
Back to top |
|
|
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
It's not about necessity.
the design is inevitable, so, I'm trying to make sure there is no potential danger of doing this, such as, special compile parameter for the nested linked program. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
dejunzhu wrote: |
It's not about necessity.
the design is inevitable, so, I'm trying to make sure there is no potential danger of doing this, such as, special compile parameter for the nested linked program. |
OK, so there can be something of the "language barrier"... (up to "inevitable" it sounds like it is the Criminal Mastermind talking to the Captured and Soon to be Deceased (CM Thinks) James Bond), but what if there is no "special compile parameter" given that we have no clue what would make it "special" for you.
Can you show your "ordinary" compile parameters, please? |
|
Back to top |
|
|
dejunzhu
Active User
Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
compile parameters used by common programs are shown as below:
Code: |
PP 5655-S71 IBM Enterprise COBOL for z/OS 4.2.0 Date 04
Invocation parameters:
SSRANGE,LIB,RENT,MAP,LIST,TEST(NONE,SYM,SEP),NOXREF,DBCS,NOSEQ,TRUNC(OPT) |
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Sorry, need to see the values of all the ones which affect object generation (you can exclude OUTDD), as your installation defaults need not be those that IBM supplies. |
|
Back to top |
|
|
sentoganesh
New User
Joined: 08 Aug 2013 Posts: 3 Location: India
|
|
|
|
I dont think nested LINKs will need any specific compile options...each LINK creates new run unit meaning new (fresh) working storage...so you will not know if it is a first / second invocation by looking at working storage values... |
|
Back to top |
|
|
colin777
New User
Joined: 06 Jun 2013 Posts: 19 Location: Singapore
|
|
|
|
Hi,
If you are in any doubt, you can issue an EXEC CICS ASSIGN INVOKINGPROG(data-area), in the Linked to program, to ascertain which program issued the LINK or XCTL.
If you get back 8 blanks in the data-area, then you are in the top program.
HTH
Colin777 |
|
Back to top |
|
|
|