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

what happens f blockSize specified in DCB and COBOL Program


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

New User


Joined: 21 Jun 2004
Posts: 33
Location: Andorra

PostPosted: Sat Apr 23, 2005 11:14 pm
Reply with quote

helo all,

1. What is the reason that 'OCCURS' clause cannot be not used in 01 Level.
2. Block size can be specified both in cobol pgm and in DCB parameter of JCL. If both r coded, wht will happen ? Which one will it take?

bye
Back to top
View user's profile Send private message
maverick05

New User


Joined: 14 Apr 2005
Posts: 54
Location: Earth

PostPosted: Sun Apr 24, 2005 2:07 am
Reply with quote

Hi,
For ur first Q,there is an option at the top called SEARCH,please check there b4 posting..Anyhow,occurs cannot be used at 01 level as 01 is generally used for describing records and occurs concept is used not for repeating records but for repeating fields of the records of the same type.

For ur Q2,blocksize of both ur cobol pgm and JCL should match,otherwise u'll get error code 39 i guess.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Apr 24, 2005 3:14 am
Reply with quote

Hi,

1. This has been posed here before, but none of the ans ring true to my ear.

2. When a dataset is processed by the system it goes thru what is called the "DCB merge". DCB info in the JCL can be cds label/DSCB this info, in turn, can be overridden by DCB info in the pgm.

If DCB info is not overridden by succeeding merge steps it is retained.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top