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

What is BLOCK CONTAINS 0 RECORDS


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kaleelahamed

New User


Joined: 08 Jun 2006
Posts: 45
Location: Trumbull, CT

PostPosted: Thu Oct 11, 2007 12:57 pm
Reply with quote

Hi,

I am in a prodcution support team.
Many of our old cobol programs have been coded with

BLOCK CONTAINS 0 RECORDS.

and some program are coded with

BLOCK 0 RECORDS.

are they both equivalent?
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Oct 11, 2007 1:09 pm
Reply with quote

Yes, and they both allow SDB, which is good....
Back to top
View user's profile Send private message
kaleelahamed

New User


Joined: 08 Jun 2006
Posts: 45
Location: Trumbull, CT

PostPosted: Thu Oct 11, 2007 2:24 pm
Reply with quote

Thanks for info.
but what is SDB?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Oct 11, 2007 3:07 pm
Reply with quote

Kaleel,

SDB stands for 'system-determined block '.
Back to top
View user's profile Send private message
kaleelahamed

New User


Joined: 08 Jun 2006
Posts: 45
Location: Trumbull, CT

PostPosted: Thu Oct 11, 2007 5:22 pm
Reply with quote

Thanks for the info again icon_biggrin.gif
Back to top
View user's profile Send private message
kaleelahamed

New User


Joined: 08 Jun 2006
Posts: 45
Location: Trumbull, CT

PostPosted: Fri Oct 12, 2007 11:03 am
Reply with quote

Hi as I already intoduced my, I am tuning our programs in my support work.
We have Easytrieve programs also in our scope.
Can any thing like BLOCK CONTAINS 0 RECORDS can be coded in them too. I am somewat new to Easytrieve.
I think I should have started this topic in that Easytrieve forum. But still since this requires both COBOL and Easytrieve information, I have put it here.
can any one suggest me something?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Oct 12, 2007 3:13 pm
Reply with quote

Just specify zero for the blocksize in the file statement....as in:
FILE SEQFILE FB(80 0)
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top