View previous topic :: View next topic
|
Author |
Message |
sampellypradeep
New User
Joined: 02 Jul 2009 Posts: 7 Location: hyderabad
|
|
|
|
HI,
Is it possible to update & activate components of changeman package thru a rexx program..
Please let me know for any further information...
Thannks & Regards,
Pradeep. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
I suspect there is already a standard process in place for your environment.
What reason is there for writing something additional/non-standard?
Possibly, there is something i misunderstand. . . |
|
Back to top |
|
|
sampellypradeep
New User
Joined: 02 Jul 2009 Posts: 7 Location: hyderabad
|
|
|
|
Hi,
Thanks for the Reply,
My requirement is to update & compile multiple components of a changeman package thru REXX pgm..
for Ex..i have a changeman package 'XXXX1234' with some 100 components,now i have to add few similar lines of code to all the components after the last line and compile them..
Hence if the number of components increases the time consumption to edit and add code to all the componets also increases which increases the chances of manual errors...
for this reason we are searching a way whether we can automate this process with a REXX code ...
Please let me know for any further information/possibilities of coding this
Thanks & Regards,
Pradeep. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
I agree with Dick -- I use Change Man since quite time by now, compiling/staging etc. are just matter of hitting some PF keys in change man so it's little strange to look for such a "tool".
I do not do REXX much, however, to start with such a "tool" you may try invoking those PF keys using REXX. |
|
Back to top |
|
|
sampellypradeep
New User
Joined: 02 Jul 2009 Posts: 7 Location: hyderabad
|
|
|
|
Hi Anuj,
Thanks for the reply.
I was trying to invoke the changeman
000014 if region = 'EU' then
000015 "cmanuk"
this code is able to invoke the changeman main menu but iam not sure how to access the particular options like stage in changeman thru rexx...
Please help me how to access the changeman options after invoking cmn..
please let me know for any further information...
Regards,
Pradeep. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Would it not be simpler to generate the necessary additional lines of code (using REXX) into a PDS and then, in the Changeman JCL, concatenate the appropriate member to the compiler SYSIN? Staging the Changeman member(s) should then result in clean compile(s) and activation(s).
Garry. |
|
Back to top |
|
|
sampellypradeep
New User
Joined: 02 Jul 2009 Posts: 7 Location: hyderabad
|
|
|
|
Hi Gary,
Thanks for the reply,
Could you please explain your solution in detail...
my requirement is :i have few components already present in changeman package and now i want to update and compile them using a REXX pgm..
Regards,
Pradeep. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Hi Pradeep,
First, Changeman specifes the program to be compiled in the MEMBER= parameter for the SERCOPY step. This member name is also referenced in dataset (PDS) references throughout the JCL.
In Changeman's CMNWRITE step, the program and its copybooks are expanded prior to compile. This output from the step passed to the compiler is in the SYSOFILE.
If you have a PDS with the additional lines you want to add at the end of the source, you could concatenate that PDS, with membername, after the SYSOFILE dataset where it is input to the compile step.
You might have to check how Changeman skeletons are applying the member name to the various dataset references so you can piggyback on that.
Regards,
Garry. |
|
Back to top |
|
|
sampellypradeep
New User
Joined: 02 Jul 2009 Posts: 7 Location: hyderabad
|
|
|
|
Hi Gary,
Thank you so much for the reply,
I will check this out and let you know..
Thanks & Regards,
Pradeep. |
|
Back to top |
|
|
sampellypradeep
New User
Joined: 02 Jul 2009 Posts: 7 Location: hyderabad
|
|
|
|
Hi Gary,
I tried this out with 'PGM=CMNVSRVC' which is recompiling multiple components with one job..
could you please let me know which changeman pgm is used to edit and compile the components in cmn package.
Please let me know for any furhter informantion.
Regards,
Pradeep |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
IEWL? |
|
Back to top |
|
|
sampellypradeep
New User
Joined: 02 Jul 2009 Posts: 7 Location: hyderabad
|
|
|
|
I dont think this is the changeman pgm used to edit and compile...i think it starts with 'CMN...
IEWL is a link-editor and it link-edits the OBJ to create a load module. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Well -- please compile some program normally thoriugh change man i.e. without the intervention of "REXX tool". THen, have a look on the JCL generated in back end. You'll find what is used for what at different stages of staging/compilation. |
|
Back to top |
|
|
|