Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem with opening file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Problem with opening file
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: 8593
Location: Back in jolly old England

PostPosted: Fri Aug 28, 2009 11:10 am    Post subject:
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: 7990
Location: Bellevue, IA

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

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

Senior Member


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

PostPosted: Fri Aug 28, 2009 5:39 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us