View previous topic :: View next topic
|
Author |
Message |
mchanapa
New User
Joined: 17 Nov 2011 Posts: 36 Location: India
|
|
|
|
Hi,
I have a requirement to do NEW COPY of 50 Online programs.
So i want to activate the Auto install option forcefully ( As they are old programs) for these programs so that new load will be taken from loadlibs in the first use after the promotion.
Kindly suggest if there is any method or command to activate Auto install option forcefully other than PHASEING or NEW COPY options.
Regards,
Mchanapa. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
when you say forcefuly
do you mean without recycling cics |
|
Back to top |
|
|
mchanapa
New User
Joined: 17 Nov 2011 Posts: 36 Location: India
|
|
|
|
Yes . . With out Region Re cycle.
Thanks & Regards,
Mchanapa |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
I don't think Auto install will help you as much as you think it will. If the program has already been referenced, it has been installed and will not be installed again. Section 5.5.4.1 of the CICS Resource Definition Guide manual says
Quote: |
5.5.4.1 When the autoinstall control program is invoked for program autoinstall
For programs, the autoinstall control program is invoked when:
Any of these commands references a previously undefined program:
EXEC CICS LINK
EXEC CICS XCTL
EXEC CICS LOAD
The program is the first program in a transaction.
An EXEC CICS ENABLE is issued for a GLUE or a TRUE.
An abend occurs after an EXEC CICS HANDLE ABEND PROGRAM command is issued and CICS invokes the named program.
CICS calls a user-replaceable program.
For mapsets, the autoinstall control program is invoked when an EXEC CICS SEND MAP or EXEC CICS RECEIVE MAP refers to a previously undefined mapset.
For partitionsets, the autoinstall control program is invoked when an EXEC CICS SEND PARTNSET or EXEC CICS RECEIVE PARTN command refers to a previously undefined partitionset. |
If you are saying you want to reset these programs so they will be installed again, you might as well recycle the region. Having autoinstall reinstall the programs after they've been installed could cause problems with your CICS region. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
well,
if you had lat least read 3.11 Writing a program to control autoinstall of programs located here
you may get the impression of what you want to do, is not doable.
BUT
I did not read all the documentation, (all cics documents found here),
but if you do, you may find a way. |
|
Back to top |
|
|
mchanapa
New User
Joined: 17 Nov 2011 Posts: 36 Location: India
|
|
|
|
Thanks Dick . .
I will go through them and get back to you.
Thanks & Regards,
Mchanapa |
|
Back to top |
|
|
Peter cobolskolan
Active User
Joined: 06 Feb 2012 Posts: 104 Location: Sweden
|
|
|
|
Why not write a small program/transaction thas does the
Exec CICS Set Program(nnnn) New
for the programs you have. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
If you have the Authority to use CECI (hopefully NOT in Production), you can issue a SET PROG API.
Otherwise, go with Peter's suggestion.... |
|
Back to top |
|
|
Jose Mateo
Active User
Joined: 29 Oct 2010 Posts: 121 Location: Puerto Rico
|
|
|
|
Good day to all!
You could also acomplish what you want to do using a Batch-to-CICS utility like MTPBATCH where you pass CICS command thru batch using control cards into MTPBATCH. |
|
Back to top |
|
|
Earl Haigh
Active User
Joined: 25 Jul 2006 Posts: 475
|
|
|
|
take a look at Software product BatchCICS-Connect, it provides same capability as MTPBATCH, and with MORE features. |
|
Back to top |
|
|
mchanapa
New User
Joined: 17 Nov 2011 Posts: 36 Location: India
|
|
|
|
Hi All,
Thanks for the valuable suggestions.
I have tried with NEW COPY command with batch, that is working fine.
But iam looking for another way if there is any way to do Auto install forcefully for the programs which are already using in CICS region.
Thanks & Regards,
Mchanapa |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Mchanapa, auto install is used ONLY the first time a program is referenced in a CICS region. If you are doing a new copy, then there are two possibilities:
1) that program has already been referenced in that region -- in which case auto install does not apply
2) that program has NOT been referenced in that region -- in which case the first reference to the program will auto install it using whatever version is current at that time.
In other words, you MIGHT be able to write a program (as Dick suggested) to use auto install in the way you want. HOWEVER, that would almost certainly cause you problems later on since auto install is not intended to be used in that way. I STRONGLY recommend you give up on the auto install idea and use one of the other excellent techniques that have been posted. It sounds like you've decided upon what solution you want to use, despite the fact that it is pretty much irrelevant to what you want to do. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Why is there such insistence on forcing an autoinstall . . . |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
what he wants is a way will automatically perform something that will have the same affect
(with regard to current load module)
as recycling the CICS Region,
with little regard to the system as a whole
or apparently understanding how CICS works. |
|
Back to top |
|
|
|