Page 1 of 1

SMF to GENERATION

PostPosted: Wed Nov 16, 2011 12:26 am
by coldplay1991
I have this:

//JOHN0015S JOB UNIVER,CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID
// JCLLIB ORDER=(UNISHE.PROCLIB)
//UNLDSTEP EXEC SMFUNLD
//SMFUNLD.OUTDD DD DISP=(NEW,PASS),DSN=&&SMFTEMP,
// SPACE=(CYL,(20,20)),RECFM=VB,LRECL=8192
//myddname DD DISP=(OLD,DELETE),DSN=*.UNLDSTEP.SMFUNLD.OUTDD
//OUTPUT DD DISP=(NEW,CATLG),DSN=OXF0015.XXXXXLOG(+1),
// SPACE=(CYL,(20,20)),RECFM=VB,LRECL=8192


I am unable to store the temporary dataset to a generation. Moreover, how can I use DFSORT to get records for a particular id. I know temp dataset could be used in this case.

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 12:47 am
by dick scherrer
Hello,

As i requested earlier:
When you post this in a new topic, also post the JES messages relating to the output you want to be a new generation. Look at some other smf unload that works correctly and use the same dcb parameters.
You chose not to do this :?

I am unable to store the temporary dataset to a generation.
Posting "it didn't work" is a complete waste of everyone's time. You need to post what actually happened (usually best accomplished by postng the diagnostic info the system generated).

What have the system support people told you or have you not yet used the best resource for this info? What other smf unload processes have you looked at to see where yours is different than one that actually works?

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 12:49 am
by coldplay1991
 STMT NO. MESSAGE                                                     
        3 IEFC001I PROCEDURE SMFUNLD WAS EXPANDED USING PRIVATE LIBRARY
       20 IEFC611I OVERRIDDEN STEP NOT FOUND IN PROCEDURE             



JCL errors.

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 12:54 am
by coldplay1991
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,                   
//           SPACE=(CYL,(20,20)),RECFM=VB,LRECL=8192               
//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.

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 12:55 am
by dick scherrer
Hello,

Only 1 error. . . The "expanded" message is not an error, just information about how your request was processed at run time.
20 IEFC611I OVERRIDDEN STEP NOT FOUND IN PROCEDURE
You have told the system to override something that does not exist. You need to look at the proc and see what step name(s) exist. It the step does not exist, it cannot be overridden.

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 12:58 am
by dick scherrer
Hello,

One more time. . .

Look at a smf unload that actually works. Then clone it for your use.

Where are you getting these whatever.outdd dd statements?

It looks like your system has a generic proc for this and making it work for you should not take this much effort. . .

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 1:05 am
by coldplay1991
There is something wrong with my syntax thats it. Rest is fine.

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 1:11 am
by dick scherrer
Hello,

Yes, there are errors in your syntax. NO, the rest is not fine. . .

You are just flailing away with no target in sight.

3 DD statements that are possibly all incorrect is not FINE.

As has been mentioned multiple times - look at one of these that works.

Now there is a new direction. If you do not post one of these that actually works, the topic will be locked/deleted.

There is a major difference between being persistent and merely obstinate.

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 1:21 am
by coldplay1991
I figured it out. Yes! Genius

Re: SMF to GENERATION

PostPosted: Wed Nov 16, 2011 2:01 am
by dick scherrer
Hello,

I figured it out. Yes!
Good to hear it is working.

On our forums, it is customary to post the solution/resolution so it may help someone with a similar question/problem someday.