I have 10 Program which are being Statically

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
chandanavenkatesh
Member
Posts: 4
Joined: Sat Mar 22, 2014 7:11 pm

I have 10 Program which are being Statically

Post by chandanavenkatesh » Wed Mar 26, 2014 8:57 pm

Hi Team,

I have 10 Program which are being Statically

1 is calling 2 is calling 3 is calling 4 is calling 5 is calling 6 is calling 7 is calling 8 is calling 9 is 10


I have 7 th Program with modifications, can you tell me which programs do i need to compile
THANKS & REGARDS,
CHANDANA VENKATESH

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed Mar 26, 2014 9:47 pm

which are being Statically
Statically what?
which programs do i need to compile
the ones that were changed of course. If you do not understand that then you need to review your understanding of the compile process and link/bind process.
Regards
Nic

chandanavenkatesh
Member
Posts: 4
Joined: Sat Mar 22, 2014 7:11 pm

I have 10 Program which are being Statically

Post by chandanavenkatesh » Thu Mar 27, 2014 6:42 am

what i am asking is
if we get any abend in 7th program then we have done changes and compile the 7 th program, so do we need to compile all programs OR
1 to 7 programs

Please tell me.
THANKS & REGARDS,
CHANDANA VENKATESH

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Thu Mar 27, 2014 2:03 pm

And what I am trying to get you to understand is that recompiling a program has no affect if NOTHING in that program has changed - it creates the SAME object module. That is the basic understanding that you should have reached from your education.
However, if a copybook used by that program has changed then it needs to be recompiled. If you change the 7th program and it abends then the error is NOT in the 1st to 6th programs but in the 7th. If you have changed the order of items in the linkage received then you will have to change the 6th program to call the 7th program with the parameters in the correct sequence - although the 7th should be made to match the 6th program and not the other way around (why change 2 programs when you only need to change 1?).
Regards
Nic

chitta
Member
Posts: 1
Joined: Thu Jun 05, 2014 10:18 am

Post by chitta » Thu Jun 05, 2014 10:25 am

If your all programs are binded using PACKAGE, then only 7th program needs to be recompiled and rebind. If plan is used then all needs to be.

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Thu Jun 05, 2014 4:24 pm

i assume this is not db2.
i assume that you mean statically called and linked.
if so,
just relink 6 after you have recompiled and relinked 7.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Thu Jun 05, 2014 4:36 pm

Just compile any programs which have changed, and then run the linkedit/binder in whatever manner you do that. Which we can't guess.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others