Question:
The stderr and stdout files can be created using the server JCL with variables like time and date - each time the ldap server starts, the file names will include the time and date of the startup.
Answer:
The following JCL can be used as an example?
The variables d&LYYMMDD and t&LHHMMSS will resolve the file names to
'/cai/ldap/ldapr14.stdout.d111005.t132442' and '/cai/ldap/ldapr14.stderr.d111005.t132442'
//LDAPR14 PROC DEBUG=0 //LDAPR14 EXEC PGM=BPXBATA8,REGION=0M,TIME=NOLIMIT, // PARM='PGM slapd -d &DEBUG. -f ./slapd.conf' //STDOUT DD PATH='/cai/ldap/ldapr14.stdout.d&LYYMMDD..t&LHHMMSS', // PATHOPTS=(OWRONLY,OCREAT,OTRUNC), // PATHMODE=SIRWXU,PATHDISP=(KEEP,KEEP) //STDERR DD PATH='/cai/ldap/ldapr14.stderr.d&LYYMMDD..t&LHHMMSS', // PATHOPTS=(OWRONLY,OCREAT,OTRUNC), // PATHMODE=SIRWXU,PATHDISP=(KEEP,KEEP) //STDENV DD PATH='/cai/ldap/slapd.env', // PATHOPTS=(ORDONLY), // PATHMODE=SIRWXU,PATHDISP=(KEEP,KEEP) //CEEDUMP DD PATH='/cai/ldap/' //* Uncomment MAPDB and MAPDBJ if CA CIEM is installed //*MAPDB DD DSN=&HLQ..MAPDB,DISP=SHR, //* RECFM=FB,BLKSIZE=4096,LRECL=4096, //* VOL=SER=&VOL,UNIT=&SYSDA //* //*MAPDBJ DD DSN=&HLQ..MAPDB.JRN,DISP=(OLD,KEEP,KEEP), //* RECFM=FB,BLKSIZE=4096,LRECL=4096, //* VOL=SER=&VOL,UNIT=&SYSDA