JCL to output smf records as generation



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

JCL to output smf records as generation

Postby coldplay1991 » Tue Nov 15, 2011 5:51 am

I have a step which gets the records

myddname dd disp=(old,delete),dsn=*.unldstep.smfunld.outdd.
how do i proceed towards getting that written to the existing gdg i have.
i want to be able to create a generation like xxxxxx.something(+1)
and then when i am in the utility panel, 3.4, it shows all the list of datasets starting with xxxxxx.

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

Re: JCL to output smf records as generation

Postby BillyBoyo » Tue Nov 15, 2011 6:07 am

First of all, watch the DISP of your dataset. (OLD,DELETE) is "read once" only.

Are you saying you have a dataset which you want to copy to a GDG? You seem to have generally the right idea about it, so what is the problem you are having?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: JCL to output smf records as generation

Postby dick scherrer » Tue Nov 15, 2011 9:44 am

Hello and welcome to the forum,

Are you running some process to unload some smf data? Is the unloaded data for your use only? If so, why not create the new generation during the unload (i.e. the +1)?

If the unload file is not your own personal file, you need to remove the (old,delete) - whoever does own this may be highly displeased if you delete the dataset.

If you have not done so already, you need to define a new Generaton Data Group. Suggest you speak with your storage management people for the proper way to do this on your system.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: JCL to output smf records as generation

Postby steve-myers » Tue Nov 15, 2011 11:39 am

This most likely is a task performed by an experienced systems programnmer, not by a newbie. It is generally done like this to retrieve SMF data from the SMF datasets.

The JCL manuals have examples of creating GDG datasets, and there is no difference for datasets that contain SMF data other than the somewhat unusual DCB attributes used by these datasets.

Most shops have prescribed rules about this; since we do not know these rules we probably should not assist you.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: JCL to output smf records as generation

Postby coldplay1991 » Tue Nov 15, 2011 6:39 pm

Thanks for the information.

Here is what I have

                   
//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


I dont know what comes next. I have my generation data group defined and exists , it is XYZS0000.ACCOUNTLOG.
There has be something like (+1) at the end that write it to a generation. This SMF dump data I meant.
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to output smf records as generation

Postby MrSpock » Tue Nov 15, 2011 6:53 pm

OK, so from what I can tell, you have a temporary dataset "DSN=&&SMFTEMP" being created in this step. Following good coding practices, it would make sense to now add another step, checking that your step UNLDSTEP ended successfully, and then copying the temporary dataset to the GDG. What is the issue?

FYI, "XYZS0000.ACCOUNTLOG" can't possibly be a valid GDG base name.
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: JCL to output smf records as generation

Postby coldplay1991 » Tue Nov 15, 2011 7:01 pm

It gives a JCL error because something is wrong with the syntax.
No it is the valid one.

The GDG base (XXXXXX.ACCOUNTLOG) is an entry in the catalog,
not a dataset in its own right, so it doesn't exist on any particular
volume: ISPF 3.4 indicates such entries with "??????". (It does the same
for other catalog-only constructs such as VSAM clusters etc).

"A generation data group (GDG) base is allocated in a catalog before
the generation data sets are cataloged. Each GDG is represented by a GDG
base entry. Use the access method services DEFINE command to allocate the
GDG base."
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to output smf records as generation

Postby NicC » Tue Nov 15, 2011 7:06 pm

Each section of a dataset name cannot exceed 8 bytes - ACCOUNTLOG is 10 bytes - error
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: JCL to output smf records as generation

Postby coldplay1991 » Tue Nov 15, 2011 7:19 pm

Ok for instance the GDG name is:
OXF0015.XXXXXLOG
coldplay1991
 
Posts: 59
Joined: Tue Nov 15, 2011 5:47 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL to output smf records as generation

Postby MrSpock » Tue Nov 15, 2011 8:05 pm

//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
//*
// IF (UNLDSTEP.RC = 0) THEN
//COPYIT EXEC PGM=SYNCGENR or ICEGENER or IEBGENER or SORT or IDCAMS ...
//SYSUT1 DD DSN=&&SMFTEMP,DISP=(OLD,DELETE)
//SYSUT2 DD DSN=OXF0015.XXXXXLOG(+1),DISP=(,CATLG,DELETE),....
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
// ENDIF
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post