|
We have the need to merge two source files, QCLSRC from Production LPAR and QCLSRC from R&D LPAR, when complete, QCLSRC will not exist in Production, only on R&D
Step D is complicated.
Has anyone done this or attempted to do this?
Step 1 - SAVRSTOBJ OBJ(QCLSRC) LIB(PROD) RMTLOCNAME(PENCOR06) RSTLIB(RD)
Step 2 - DSPFD FILE(PROD/QCLSRC) TYPE(*MBRLIST) OUTPUT(*OUTFILE) OUTFILE(QGPL/PRDQCLSRC)
Step 3 - DSPFD FILE(RD/QCLSRC) TYPE(*MBRLIST) OUTPUT(*OUTFILE) OUTFILE(QGPL/RDQCLSRC)
Step 4 - Using CL or other tool -
A- Read Rec from QGPL/PRODQCLSRC
B- Check for existence in QGPL/RDQCLSRC
C- If non- existence- CPYSRCF FROMFILE(PROD/QCLSRC) TOFILE(RD/QCLSRC) FROMMBR(&FROMMEM) TOMBR(*FROMMBR)
RMVM FILE(RD/QCLSRC) MBR(&FROMMEM)
GO to Step A
D. If already exist in RD (Duplicate), must compare change dates, need to select the most recent of the two sources
Problem - Source member change dates were all updated during last hardware migration, not accurate.
On 4/21/12 RD LPAR was migrated from P5 to P7, all RD has source change date of 120421 or greater if updated
On 5/06/12 Prod LPAR was migrated from P5 to P7, all Prod has source change date of 120506 or greater if updated
If can't determine, skip, will process manually.
GO TO Step A
Thank You
_____
Paul Steinmetz
IBM i Systems Administrator
Pencor Services, Inc.
471 Delaware Ave
Palmerton Pa 18071
610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home
psteinmetz@xxxxxxxxxx<mailto:psteinmetz@xxxxxxxxxx>
http://www.pencor.com/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.