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

Rexx scripts to monitor PDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 26, 2009 4:50 pm
Reply with quote

Hi,

Our system has a library which has load modules

Is it possible to monitor a monitor this PDS through some rexx scripts then submit one job if the member was starting with abcd* was moved happened to those PDS.

If the member which was moved started with abdc* i need to submit a bind job having program as abcd* which is through some rexx script or any alternative.


I am familiar to rexx but this requirement looks complicated for me.If can anyone guide me how to go about it it will be helpful

Please let me know your comments.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 26, 2009 4:56 pm
Reply with quote

NO

if Your development is done in a controlled environment ( SCLM, ENDEVOR, CHANGEMAN, ...)
and the setup has been done properly
the rebind should take place automatically at each build/promote

I can guarantee that for SCLM ( done it )
but I suppose that it should be true also for the other programs
( it' s a very basic function )
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 26, 2009 5:38 pm
Reply with quote

Actually we use ENDEVOR and as we move the element we dont use

BYPASS ELEMENT DELETE

But as we the move doesnt happen through us we cant avoid them being deleted from lower libraries

So all the program being moved gets deleted from lower libs.

so if we missed to do a rebind for the same in lower libs the job fails for
-805

So I thought which will help reduce these issues.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 26, 2009 5:50 pm
Reply with quote

never happened to me with SCLM, I guess it is a setup issue

I' ll just show the logic with two levels only TEST and PROD

You have a program PROG1
when You build at the TEST level You obtain trhu compiler and lked
a DBRM and a LOAD_MODULE
and an additional step will bind to the test db2 environment
the control info in the dbrm an load module is in sync

when promoting to the higher level
all the involved components are moved from the
from the <TEST>.stuff to the <PROD>.stuff

source,load,dbrm
and a bind step is run to bind to the prod db2 environment
since the DBRM and the LOAD are not changed ( a relink does not chage the DB2 control info )

You can run the prod load modulee on the test db2 with no problem

it would be better to get a better understanding of the whole process and setup
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 26, 2009 6:04 pm
Reply with quote

Thanks enrico sorichetti

When we move the element from the <TEST>.stuff to the <PROD>.stuff

The loadlib and dbrm gets deleted through endevour.

But I as you said its should be something to do with the setup..

I will try to figure it out and meanwhile if anyone knew the setup which we need to take care for bind in lower regions though ENDEVOR please let me know.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 26, 2009 6:06 pm
Reply with quote

You misunderstood icon_biggrin.gif
if the setup has been done properly
there is no ned to rebind at the lower level

if it were so You would need to rebind at all levels of the development hierarchy
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 26, 2009 6:13 pm
Reply with quote

Got it now icon_biggrin.gif

BYPASS ELEMENT DELETE

To Avoid that this is the only go icon_idea.gif icon_idea.gif icon_idea.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 26, 2009 6:17 pm
Reply with quote

an issue would be if the load module was not copied but rebuilt from the sources ( creating a new dbrm )
in this case the whole environment would be out of sync
rebuilding from the sources at any level would invalidate the contokens at the lower levels

i would repeat again if the setup is proper You can delete the lower level on promotion with no issues

review the setup with the endevor support group
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Fri Jun 26, 2009 6:58 pm
Reply with quote

Thanks enrico sorichetti icon_smile.gif

Will do that.....
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top