Let me explain my code everyone
//JON0015S JOB UNIVER,CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID
// JCLLIB ORDER=(UNISHE.PROCLIB)
//UNLDSTEP EXEC SMFUNLD
//SMFUNLD.OUTDD DD DISP=(NEW,PASS),DSN=&&SMFTEMP,
//MYDDNAME DD DISP=(OLD,DELETE),DSN=*.UNLDSTEP.SMFUNLD.OUTDD
//MYDDNAME.OUTDD DD DISP=(NEW,CATLG,DELETE),DSN=OXF0015.XXXXXLOG(+1)
There are 6 lines in total.
In line 3: I store the SMF data to a temp file
In line 4: I refer to the dataset with the temp file
In line 5: I try to write the contents of the SMF temp file to a new generation.
If I remove the last 2 lines and replace in line 3 the code DSN=&&SMFTEMP with code OXF0015.XXXXXLOG(+1). It works. The generation gets written.
However, using this method, which I am sure it should also work. Help me correct my syntax and other things.
The JCL output in the SDSF section does give the SMF.ACCUM.LOG details so that bit is fine. When it comes to writing it to a generation from the temporary dataset, that is the PROBLEM.