IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem with opening file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sakthisiga
Warnings : 1

New User


Joined: 11 Jun 2009
Posts: 60
Location: Chennai

PostPosted: Fri Aug 28, 2009 10:04 am
Reply with quote

Hi all,

Please refer the following JCL,
Code:
 000100 //U195243$ JOB MSGCLASS=X,MSGLEVEL=(1,1),CLASS=B,                 
 000200 //         REGION=5M,NOTIFY=&SYSUID                               
 000300 //STEP1  EXEC PGM=IFASMFDP                                       
 000400 //SYSPRINT DD SYSOUT=*                                           
 000500 //IN       DD DSN=U195243.PECOE.SMFFINL,DISP=OLD                 
 000600 //OUT      DD DSN=U195243.PECOE.SMFRUN,DISP=(MOD,KEEP),UNIT=3390 
 000800 //SYSIN DD *                                                     
 000900   INDD(IN,OPTIONS(DUMP))                                         
 001000   OUTDD(OUT,TYPE(70:79))                                         
 001100 //                                                               

i have used the above JCL to dump the dateset. refer "out" dd statement. The file information for that file is given below:
Code:
 Data Set Name . . . . : U195243.PECOE.SMFRUN                           
                                                                         
 General Data                           Current Allocation               
  Management class . . : **None**        Allocated megabytes : 1         
  Storage class  . . . : PUBLIC          Allocated extents . : 1         
   Volume serial . . . : LPRJ19                                         
   Device type . . . . : 3390                                           
  Data class . . . . . : **None**       Current Utilization             
   Organization  . . . : PS              Used megabytes  . . : 1         
   Record format . . . : VBS             Used extents  . . . : 1         
   Record length . . . : 32767                                           
   Block size  . . . . : 4096                                           
   1st extent megabytes: 1                                               
   Secondary megabytes : 1                                               
   Data set name type  :                 SMS Compressible  . : NO       


The question is,

When i try to open the "out" dd file, it shows "Invalid Record Length".

Can anyone explain me about the problem in that process?

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Aug 28, 2009 11:10 am
Reply with quote

I always specify the output RECFM and LRECL
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 28, 2009 5:20 pm
Reply with quote

What are you using to open the file?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 28, 2009 5:39 pm
Reply with quote

Manuls have something to share here...
Quote:
SMF records created by IBM components never exceed 32,756 bytes. If the data required in a record would cause the record to exceed that length, the component responsible for creating the record would, instead, create multiple (continuation) records, none of which would exceed 32,756 bytes.(See "Record Type 30 (1E) -- Common Address Space Work" in item TYPE30-CSA-WORK for an example.) SMF records are written as spanned (VBS) in order to conserve storage space by ensuring that each block of data is as full as possible. If you specify DCB parameters on any of the input or output DD statements for IFASMFDL, you must specify RECFM=VBS. You should not specify LRECL=X for reading or writing SMF dump data, because LRECL=X signifies that a single record may be larger than 32,756 bytes, which is not the case for SMF data.

You can specify LRECL=32760 instead of 32767. You can also specify any block size from 4096 to the maximum allowed for the chosen device.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top