SMF to GENERATION



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

SMF to GENERATION

Postby coldplay1991 » Wed Nov 16, 2011 12:26 am

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.
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: SMF to GENERATION

 

Re: SMF to GENERATION

Postby dick scherrer » Wed Nov 16, 2011 12:47 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: SMF to GENERATION

Postby coldplay1991 » Wed Nov 16, 2011 12:49 am

 STMT NO. MESSAGE                                                     
        3 IEFC001I PROCEDURE SMFUNLD WAS EXPANDED USING PRIVATE LIBRARY
       20 IEFC611I OVERRIDDEN STEP NOT FOUND IN PROCEDURE             



JCL errors.
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: SMF to GENERATION

Postby coldplay1991 » Wed Nov 16, 2011 12:54 am

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.
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: SMF to GENERATION

Postby dick scherrer » Wed Nov 16, 2011 12:55 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: SMF to GENERATION

Postby dick scherrer » Wed Nov 16, 2011 12:58 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: SMF to GENERATION

Postby coldplay1991 » Wed Nov 16, 2011 1:05 am

There is something wrong with my syntax thats it. Rest is fine.
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: SMF to GENERATION

Postby dick scherrer » Wed Nov 16, 2011 1:11 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: SMF to GENERATION

Postby coldplay1991 » Wed Nov 16, 2011 1:21 am

I figured it out. Yes! Genius
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: SMF to GENERATION

Postby dick scherrer » Wed Nov 16, 2011 2:01 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post