If the logrec data set does not exist, you must first allocate it and then initialize it. (Whenever you allocate or reallocate the logrec data set, the newly allocated data set will not be used until you initialize it and IPL the system on which it is to be used.)
//KATHYLR JOB (9999),'CREATE NEW LOGREC DS',CLASS=A,MSGCLASS=X,
// MSGLEVEL=(1,1),NOTIFY=KATHY
//*------------------------------------------------------------------
//* RENAME THE CURRENT LOGREC DATASET
//* UNCATLG SYS1.LOGREC SO THE NEW LOGREC CAN BE ALLOCATED ON
//* ANOTHER VOLUME, IF DESIRED
//*------------------------------------------------------------------
//RENAME EXEC PGM=IEHPROGM
//M43RES DD VOL=SER=M43RES,UNIT=3390,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
RENAME DSNAME=SYS1.LOGREC,VOL=3390=M43RES, X
NEWNAME=SYS1.LOGREC.OLD
UNCATLG DSNAME=SYS1.LOGREC
/*
//*------------------------------------------------------------------
//* CREATE THE NEW LOGREC DATASET AND INITIALIZE IT
//*------------------------------------------------------------------
//IFCDIP00 EXEC PGM=IFCDIP00,COND=(0,LT)
//SERERDS DD DSN=SYS1.LOGREC,DISP=(,CATLG),
// VOL=SER=M43RES,UNIT=SYSDA,SPACE=(CYL,3,,CONTIG)
/*
//
See z/OS DFSMSdss Storage Administration for information about the DFSMSdss stand-alone restore program.