× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Sharing is tracked unidirectionally, by name, not by address. Once sharing is broken, it is effectively permanently broken, but with the *opportunity* to share again. Thus restore of a file named as reference in a CPF3281 performed *after* the restore of the file that saw the CPF3281 during restore will *not* effect sharing back to the already restored file; a file which now has its own [identical] format. The opportunity for sharing comes when the file that previously saw CPF3281 is saved and restored again, that if the file to which its sharing was previously established exists during this new restore, then it can share again.

Note that format sharing can be a source of frustration for custom but /effectively/ identical formats. The case where the /opportunity/ exists, a format that was customized with its own special column heading and editing [and other information which does not impact the field definitions nor record format level identifier], then the newly restored file will now adopt the changes even when that may not be desirable.

Create files versus copies if [ramifications from possible future] sharing may be undesirable. Otherwise to recover from an undesirable share requires a temporary rename of the shared-to file, delete & restore-again of the file that should not share, and then rename back from the temporary rename.

<code>
setup:
chgjob logclpgm(*no)
dltf qtemp/savdlt
monmsg cpf2105 exec(rcvmsg msgtype(*excp) rmv(*yes))
dltf qtemp/savtst
monmsg cpf2105 exec(rcvmsg msgtype(*excp) rmv(*yes))
dltlib crpdlt
monmsg cpf2111 exec(rcvmsg msgtype(*excp) rmv(*yes))
dltlib crptst
monmsg cpf2111 exec(rcvmsg msgtype(*excp) rmv(*yes))
crtlib crpdlt
crtlib crptst
crtpf crpdlt/pforig mbr(junk) rcdlen(1)
crtdupobj pforig crpdlt *file crptst pfdup
cpyf crpdlt/pforig crptst/pfcpy crtfile(*yes)
/* Two requests above effect implicit format sharing */
dspdbr crpdlt/pforig rcdfmt(*all)
/* First file is PFORIG in CRPDLT; the format owner */
crtsavf qtemp/savdlt
savlib crpdlt *savf savf(qtemp/savdlt)
crtsavf qtemp/savtst
savlib crptst *savf savf(qtemp/savtst)
testcase:
dltlib crpdlt
dltlib crptst
chgjob logclpgm(*YES)
rstlib crptst *savf savf(qtemp/savtst)
/* Two cpf3281 for missing file PFORIG in CRPDLT */
dltlib crptst
rstlib crpdlt *savf savf(qtemp/savdlt)
rstlib crptst *savf savf(qtemp/savtst)
/* No msgs, sharing restored due to restore order */
dltlib crpdlt
dspdbr crptst/pfdup
/* Zero sharing */
dspdbr crptst/pfcpy
/* Zero sharing */
savlib crptst *savf savf(qtemp/savtst) clear(*all)
dltlib crptst
rstlib crptst *savf savf(qtemp/savtst)
/* Two cpf3281 for missing file PFORIG in CRPDLT, but */
/* *no* new storage taken! Msgs are anomalous? No, */
/* because the /name/ for sharing remained unchanged, */
/* & once sharing assigned restore will review again */
/* since *if* a format were found, it would save stg */
rstlib crptst *savf savf(qtemp/savtst) rstlib(crpdlt)
/* two cpf3281 for missing file PFORIG in CRPDLT ?? */
/* Because /name/ for sharing is also being restored */
cleanup:
dltf qtemp/savdlt
dltf qtemp/savtst
dltlib crptst
dltlib crpdlt
</code>

I am not sure if QDBRTVFD manifests the /intend-to-share/ file and library names... I did not look.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.