bdfp1m1jProgramming Concepts and Reference

dfrep-Replace a Logical Record with Another Logical Record

Use this group of functions to replace the following:

Format

dft_rec *dfrep(dft_fil *file, dft_rec *rcd);
dft_rec *dfrep_sub(dft_fil *file, dft_rec *sub);
dft_rec *dfrep_usr(dft_fil *file, dft_rec usr);
dft_rec *dfrep_usr_sub(dft_fil *file, dft_rec *sub,
        dft_rec *usr);

file
is a pointer to the base address of the SW00SR slot (defined in c$sw00sr.h) of the subfile that you want to access and is returned by the dfopn function.

rcd
is a pointer to the replacement LREC.

sub
is a pointer to the subLREC that is to replace the subLREC already in the extended LREC.

usr
is a pointer to the userLREC that is to replace the userLREC already in the extended LREC.

Entry Requirements

Before using the dfrep_sub, dfrep_usr, or dfrep_usr_sub function, you must use a dfred function to locate the extended LREC in which you want to replace a subLREC or userLREC.

Normal Return

One of the following:

Error Return

 See Identifying Return Indicators and Errors for information about how to check the error indicators. 

Programming Considerations

Examples

Related Functions