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

FIXED BLOCK


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

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Wed Aug 31, 2005 2:16 pm
Reply with quote

Hi all,

I have created one fixed block sequential file with LRECL=250, the return code is 0 but when i go to the propertied of that data set it giving LRECL=133, is it fixed or there is any reason

again i changed the LRECL to 300 in my code even then the LRECL for that dataset is 133

please help me in this

Thanks & Regards,
pradeep
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Wed Aug 31, 2005 2:36 pm
Reply with quote

Hi Pradeep

I think its better if you pate your code here so that we can check is there any problem in it

Regards
Rupesh
Back to top
View user's profile Send private message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Thu Sep 01, 2005 9:41 am
Reply with quote

Hi rupesh,

My code is like this

//JOB CARD
//STEPFIX EXEC PGM=IEFBR14
//DDFIX DD DSN=PRDEEP.TEST.DSET,DISP=(NEW,CATLG,DELETE)
// VOLUME=SER=V100U, UNIT=SYSDA,SPACE=(TRK(20,10),RLSE),
// DEC=(RECFM=FB,LRECL=350,BLKSIZE=32720)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//

Please check this, send me reply

Thnaks,
pradeep
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Thu Sep 01, 2005 10:07 am
Reply with quote

Hi,

Try the following code.

Code:
//STEP01 EXEC PGM=IEFBR14                                       
//DDFIX DD DSN=KOTHARU.TEST.D0109,DISP=(NEW,CATLG,DELETE),       
//         UNIT=SYSDA,SPACE=(TRK,(20,10),RLSE),                 
//         DCB=(RECFM=FB,LRECL=350,BLKSIZE=3500)                 
//SYSPRINT DD SYSOUT=*                                           
//SYSIN DD DUMMY                                                 
//


I got the LRECL =350 as following

Code:
Record length . . . : 350 



Hope it will solve your problem

Regards
Rupesh
Back to top
View user's profile Send private message
mainframesguru

New User


Joined: 24 Jun 2005
Posts: 36
Location: Hyderabad

PostPosted: Thu Sep 01, 2005 10:48 am
Reply with quote

Hi,


One Suggestiong:

Its better not to Code BLKSIZE, system would assign appropriate value for it.

Try your first code without using BLKSIZE, it would surely work.
The Reason for your LRECL error is, BLKSIZE is not multiple of LRECL

Thanks
Vamshi
ICC-ISH
Back to top
View user's profile Send private message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Fri Sep 02, 2005 11:18 am
Reply with quote

Hi vamsi,

But i reffered the properties of some of my dataset the BLKSIZE is 32720 and the LRECL is 80. what is this our point of view

please help me na,

Thanks & Regards,
pradeep
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Fri Sep 02, 2005 12:20 pm
Reply with quote

Hi Pradeep,

Whenever we mention BLKSIZE it should be multiple of LRECL.

In BLKSIZE = 32720 is multiple of LRECL=80.

I hope it will clear your doubt.

Regards
Rupesh
Back to top
View user's profile Send private message
ksivapradeep

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Fri Sep 02, 2005 5:54 pm
Reply with quote

Hi rupesh,

Thanks for ur patience, my doubt is how many records will store for the BLKSIZE=32720 and LRECL=80. i didnt get the multiple of LRECL

thanks,
pradeep
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 Store the data for fixed length COBOL Programming 1
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Converting fixed length file to excel... IBM Tools 7
No new posts I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts How to remove block of duplicates DFSORT/ICETOOL 8
Search our Forums:

Back to Top