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

Can we perform NEWC of program through AutoInstall option


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

New User


Joined: 17 Nov 2011
Posts: 36
Location: India

PostPosted: Mon May 07, 2012 4:22 pm
Reply with quote

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

Global Moderator


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

PostPosted: Mon May 07, 2012 4:27 pm
Reply with quote

when you say forcefuly
do you mean without recycling cics
Back to top
View user's profile Send private message
mchanapa

New User


Joined: 17 Nov 2011
Posts: 36
Location: India

PostPosted: Mon May 07, 2012 4:29 pm
Reply with quote

Yes . . With out Region Re cycle.

Thanks & Regards,
Mchanapa
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Mon May 07, 2012 4:49 pm
Reply with quote

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

Global Moderator


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

PostPosted: Mon May 07, 2012 4:55 pm
Reply with quote

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

New User


Joined: 17 Nov 2011
Posts: 36
Location: India

PostPosted: Mon May 07, 2012 5:04 pm
Reply with quote

Thanks Dick . .

I will go through them and get back to you.

Thanks & Regards,
Mchanapa
Back to top
View user's profile Send private message
Peter cobolskolan

Active User


Joined: 06 Feb 2012
Posts: 104
Location: Sweden

PostPosted: Mon May 07, 2012 5:24 pm
Reply with quote

Why not write a small program/transaction thas does the
Exec CICS Set Program(nnnn) New
for the programs you have.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon May 07, 2012 6:27 pm
Reply with quote

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

Active User


Joined: 29 Oct 2010
Posts: 121
Location: Puerto Rico

PostPosted: Mon May 07, 2012 7:33 pm
Reply with quote

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

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Mon May 07, 2012 9:55 pm
Reply with quote

take a look at Software product BatchCICS-Connect, it provides same capability as MTPBATCH, and with MORE features.
Back to top
View user's profile Send private message
mchanapa

New User


Joined: 17 Nov 2011
Posts: 36
Location: India

PostPosted: Tue May 08, 2012 10:14 am
Reply with quote

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

Global Moderator


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

PostPosted: Tue May 08, 2012 7:02 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Tue May 08, 2012 8:44 pm
Reply with quote

Hello,

Why is there such insistence on forcing an autoinstall . . . icon_confused.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue May 08, 2012 9:13 pm
Reply with quote

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
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 Error to invoke MPP program through B... IMS DB/DC 3
No new posts Using API Gateway from CICS program CICS 0
No new posts SCOPE PENDING option -check data DB2 2
No new posts DB2 Event passed to the Application P... DB2 1
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
Search our Forums:

Back to Top