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

Clarification on IEB311I CONFLICTING DCB PARAMETERS


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

New User


Joined: 25 Nov 2010
Posts: 70
Location: Sivakasi, India

PostPosted: Mon Jan 03, 2011 10:08 pm
Reply with quote

I have a ps dataset. Its DCB is given here :

Record format . . . : FB
Record length . . . : 80
Block size . . . . : 320
1st extent cylinders: 1
Secondary cylinders : 3


I was trying to copy this to a new ps dataset using IEBGENER.
This is the program.

//STEP10 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=ABCDEF.XXXXXXX.SAMPLE1,DISP=SHR
//SYSUT2 DD DSN=XXXXXXX.SURESH.SAMPLE2,DCB=(LRECL=90,BLKSIZE=450,
// RECFM=FB),DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,3),RLSE)
//SYSIN DD DUMMY


The new file was created. But it doesnot contain the data in it from the source file.

But ended with the error :

DATA SET UTILITY - GENERATE
IEB311I CONFLICTING DCB PARAMETERS

Why? Then i changed the DCB parameters to

DCB=(LRECL=80,BLKSIZE=400,RECFM=FB)

Then the contents were copied.

My question is, if the LRECL of the source and destination files are same, then only we will be able to copied ? Event the BLKSIZE is different in the above case for both files.


So if the error occurs like...
IEB311I CONFLICTING DCB PARAMETERS

Does it mean only the LRECL needs to get changed? Or Do i need to concentrate any other parameters while copying ps datasets in DCB or other?
Please clarify.


Thanks.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 03, 2011 10:15 pm
Reply with quote

The Messages and Codes manual is quite clear about the causes of an IEB311I message:
Quote:
IEB311I CONFLICTING DCB PARAMETERS

Explanation: The DCB parameters in the SYSUT2 DD statement are not compatible with those specified in the SYSUT1 DD statement. The reason for incompatibility could be one of the following:

1. The I/O blocksize is inconsistent with the I/O logical record length when the record format is FB or F

2. The I/O blocksize is not at least 4 bytes larger than the I/O logical record length when the record format is VB or V

3. The output logical record length is different from the input logic record length or the input record format is variable and the output record format is fixed when editing is not specified. Refer to z/OS DFSMSdfp Utilities, SC26-7414, section ''Changing Logical Record Length'' under IEBGENER

4. The output blocksize is not equal to the input blocksize when the input record format is undefined.

Spend some time in the Utilities manual and you may run across the GENERATE control statement for IEBGENER which allows creation of an output data set with a record length different than the input data set record length.
Back to top
View user's profile Send private message
Ronald Burr

Active User


Joined: 22 Oct 2009
Posts: 293
Location: U.S.A.

PostPosted: Mon Jan 03, 2011 10:20 pm
Reply with quote

sureshmurali wrote:
My question is, if the LRECL of the source and destination files are same, then only we will be able to copied ? Event the BLKSIZE is different in the above case for both files.


Yes, if you are using SYSIN DD DUMMY. If you had provided SYSIN statements to "build" a 90 byte output record from an 80 byte input record, then it would have worked.

sureshmurali wrote:
So if the error occurs like...
IEB311I CONFLICTING DCB PARAMETERS

Does it mean only the LRECL needs to get changed? Or Do i need to concentrate any other parameters while copying ps datasets in DCB or other?
Please clarify.

Any change in LRECL requires that you provide the necessary statements in SYSIN to construct the (new) SYSUT2 record at the specified LRECL.
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 Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts How to prevent two schid’s from con... CA Products 1
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Trim values of parameters in JCL JCL & VSAM 2
Search our Forums:

Back to Top