Page 1 of 1

IFASMFDP processing.

Posted: Fri Mar 21, 2014 1:19 pm
by Dino
Hi,

I'm using IFASMFDP program to dump a SMF data set to retieve data only for 31 Jan, 2014 and used the below Job: This JOb abends with SB37, which I can resolve - however while reading about IFASMFDP here I got confused about the bold text: http://pic.dhe.ibm.com/infocenter/zos/v ... undump.htm
Figure 12 shows a sample job using the SMF data set dump program to dump and clear an SMF data set (INDD1) and to combine its records with those in an old dumped data set (INDD2) to three data sets.
What does "clear an SMF data set (INDD1)" mean here - I'm an end user not a system programmer but I (might) have access to HLQ of input SMF file, so by "clear" in previous statement mean that once job executed successfully the original dataset will not have the data for 31 Jan and it'll be deleted from it and copied to output dataset? I doubt if that's the meaning but I'm not sure, can you please help.

Code: Select all

//Job accounting info
//*                                                            
//JOBLIB   DD DSN=SYS1.LINKLIB,DISP=SHR                        
//*                                                            
//SMFDMP   EXEC PGM=IFASMFDP                                   
//SYSPRINT DD SYSOUT=*                                         
//SYSUDUMP DD SYSOUT=*                                         
//*                                                            
//SMFDATA  DD DISP=SHR,DSN=xxxx.SMF.D1401.MONTH.xxxx.SMFxxxx 
//SMFOUT   DD DSN=xxxx.abc1234.D140131.xxxx.TYPE30V,           
//         DISP=(NEW,CATLG,CATLG),                             
//         SPACE=(CYL,(50,10),RLSE),UNIT=3390,VOL=SER=xxxxxx,  
//         DCB=(LRECL=32760,RECFM=VBS)                         
//SYSOUT   DD SYSOUT=*                                         
//SMFDMP.SYSIN DD *                                            
  INDD(SMFDATA,OPTIONS(DUMP))                                  
  OUTDD(SMFOUT,TYPE(0:255))                                    
  START(0000)                 
  END(2400)                   
  DATE(2014031,2014031)       
/*                            

Re: IFASMFDP processing.

Posted: Fri Mar 21, 2014 5:59 pm
by Robert Sample
SMF records are continuously being written to a SYS1.MAXx data set (usually x is 1, 2, or 3 but that does depend upon the site). IFASMFDP copies those temporary records to a sequential data set. Clearing the SMF data set is removing the records from the SYS1.MANx data set. SMF will switch from 1 to 2 to 3 as they fill up; once all three are full no SMF records can be captured by the system. Once cleared, SMF can use the data set again. If you use console command D SMF you can see the state of your SMF data sets.

Re: IFASMFDP processing.

Posted: Wed Mar 26, 2014 12:09 am
by Anuj Dhawan
In addition to what Robert has said, this parameter INDD(SMFDATA,OPTIONS(DUMP)) should be of your interest. If you'll use INDD(SMFDATA,OPTIONS(CLEAR)) your INDD data-set will be set cleared with DUMP, it's a "copy". But I'm not sure if as an end you'll be allowed to user CLEAR.

Re: IFASMFDP processing.

Posted: Mon Apr 21, 2014 4:50 pm
by Dino
Thanks Robert and Anuj.

Anuj, your reply has given the insight I was looking forward to.

Re: IFASMFDP processing.

Posted: Tue Apr 22, 2014 11:56 pm
by Anuj Dhawan
Thanks for the feedback - glad that we had been helpful.