Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we perform NEWC of program through AutoInstall option

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: Can we perform NEWC of program through AutoInstall option
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    Post subject:
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    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Mon May 07, 2012 4:49 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Can we perform NEWC of program through AutoInstall
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon May 07, 2012 6:27 pm    Post subject: Reply to: Can we perform NEWC of program through AutoInstall
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: 110
Location: Puerto Rico

PostPosted: Mon May 07, 2012 7:33 pm    Post subject:
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    Post subject:
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    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Tue May 08, 2012 7:02 pm    Post subject:
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

Site Director


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

PostPosted: Tue May 08, 2012 8:44 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm
No new posts Need points to tune IMS Checkpoint Pr... satish.ms10 IMS DB/DC 2 Fri Sep 30, 2016 4:12 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us