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
 

 

what happens f blockSize specified in DCB and COBOL Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: what happens f blockSize specified in DCB and COBOL Program
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    Post subject: Re: occurs
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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