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
 

 

FIXED BLOCK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: FIXED BLOCK
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: 464

PostPosted: Wed Aug 31, 2005 2:36 pm    Post subject: Re: FIXED BLOCK
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    Post subject: Re: FIXED BLOCK
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: 464

PostPosted: Thu Sep 01, 2005 10:07 am    Post subject: Re: FIXED BLOCK
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    Post subject:
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    Post subject:
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: 464

PostPosted: Fri Sep 02, 2005 12:20 pm    Post subject: Re: FIXED BLOCK
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    Post subject: Re: FIXED BLOCK
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    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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts SORT Block of records girishb2 DFSORT/ICETOOL 12 Thu Sep 15, 2016 8:58 am
No new posts How to copy data with delimters to fi... Venkata Ramayya DFSORT/ICETOOL 2 Wed Feb 24, 2016 10:03 pm
No new posts Which Control block has the DSNTYPE i... sudarshan.srivathsav PL/I & Assembler 4 Thu Jan 28, 2016 11:29 pm


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