MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Take a dump of SMF data sets to a flat file !!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Wed Feb 01, 2006 11:38 pm    Post subject: Take a dump of SMF data sets to a flat file !! Reply with quote

Hi, I have a requirement to take a dump of all 3 SMF data sets(sys1.man1/2/3) to a flat file. I have used IDCAMS and it copies data to a flat file but there are some roadblocks here :

a) When I give a LISTCAT against the SMF VSAM data set it shows that it has an AVGLRECL of 4086 and MAXLRECL of 32767, but to take the backup to a flat file I would need to allocate it as VB, LRECL of 32767, but that LRECL is not allowed for allocation of a data set.

b) It uses 250 cyls of data and my TSO region size limit does not allow me to allocate a data set with such a space size ....anyways this is an issue I can take care of...but kindly help me resolve the first issue...

Thanks,
- Amit.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
nevilh
Beginner


Joined: 11 Aug 2004
Posts: 115
Topics: 0

PostPosted: Thu Feb 02, 2006 7:33 am    Post subject: Reply with quote

Code:

//COPY      EXEC PGM=IFASMFDP                               
//SYSPRINT  DD SYSOUT=*                                     
//IN        DD DISP=SHR,DSN=SYS1.MAN1
//OUT       DD DISP=(,CATLG),DSN=output.file,UNIT=3390, 
// SPACE=(CYL,(250,100))                                   
//SYSIN     DD *                                           
INDD(IN,OPTIONS(DUMP))                                     
OUTDD(OUT,TYPE(000:255))
/*
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Feb 02, 2006 8:53 am    Post subject: Reply with quote

1) Look at LRECL=X parameter in JCL manuals

2) SMF records exist as RECFM=VBS, meaning a large record can span multiple, smaller physical blocks. When you read your flat file, you'll need to allow for this. There are DCB parameters (BKTEK=A,BFALN=D) to assist with this.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Fri Feb 03, 2006 10:01 am    Post subject: Reply with quote

The SMF data you want is probably already being stored in a gdg. The SMF data in the man files is just the most current records. The way the smf man files work normally is: one is the 'current' one and records are written there then it fills up and SMF switches to the next one; automation or an mpf exit then dumps and clears the one that filled up. So at any point in time you could have one (or two) empty, or one being dumped/cleared and one partially full or a similar combination. Try the D SMF mvs system command to see your current situation.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group