Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Get Load Member Stats from a REXX

Status
Not open for further replies.

GerrMcG

IS-IT--Management
Feb 6, 2002
1
GB
We periodically have to refresh load libraries from 1 environment to another. I want to set up a REXX to only replace those load members which have changed as this avoids unnecessary DB2 binds etc.

To do this I want to capture the Load Length and Link Date for each member. I am currently using AMBLIST to do this and reading the output. This seems long-winded. Does anyone have any suggestions?
LMM services do not seem to provide these statistics.
 
I have a tool for similar job where I campare date-time and target in load module. I take the advantage of that these fields are of displayable characters in load module and comes within first 20 lines (may be different in your case). So I scan first twenty line for these fields.

Here goes the logic for date-time. It's not efficient but still very fast.

DO J = 1 TO 20
"LMGET DATAID(&LLB) MODE(INVAR) DATALOC(LIN2)
DATALEN(LEN) MAXLEN(6000)"
IF SUBSTR(LIN2, 26, 1) = "/" THEN
IF SUBSTR(LIN2, 29, 1) = "/" THEN
LINE = LIN2
END
CRTD = SUBSTR(LINE, 24, 17)

CRTD gives me the compilation date-time, like 05/13/02 01.50.28 . LLB is pointing to load module here.
 
I had to do something like this last year. I used StarTool's ATTRIB to get the link-date. Too easy!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top