MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

U1035 - FILE ATTRIBUTE MISMATCH ERROR

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
Deepubonds
Beginner


Joined: 08 Mar 2005
Posts: 16
Topics: 2

PostPosted: Tue Mar 08, 2005 2:24 pm    Post subject: U1035 - FILE ATTRIBUTE MISMATCH ERROR Reply with quote

Hi ,

I am getting a U1035 abend even though the file attributes in defined in the program & JCL are same.

IN PROGRAM
FD REPORT-FILE
LABEL RECORDS ARE STANDARD
DATA RECORD IS REPORT-RECORD.
01 REPORT-RECORD.
05 REPORT-PRINT-LINE.
10 REPORT-CARRIAGE-CONTROL PIC X(01).
10 REPORT-DATA PIC X(131).

IN JCL:
//ORPT01 DD DSN=name,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(05,10),RLSE),
// RECFM=FB,
// LRECL=132


Any idea why would I get U1035 return code with these attributes.
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Mar 08, 2005 3:02 pm    Post subject: Reply with quote

deepubonds,
Throw RECORDING MODE IS F into the FD section and see what happens.
Back to top
View user's profile Send private message
Deepubonds
Beginner


Joined: 08 Mar 2005
Posts: 16
Topics: 2

PostPosted: Tue Mar 08, 2005 3:06 pm    Post subject: Reply with quote

I have already tried with these options.

RECORDING MODE IS F
RECORD CONTAINS 132 CHARACTERS
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Mar 08, 2005 3:12 pm    Post subject: Reply with quote

Deepubonds,
Just curious. Why would you want to use carriage Control as a variable rather than use FBA. If you are coding a traditional report try to use FBA. That would help. Thanks
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Mar 08, 2005 3:21 pm    Post subject: Reply with quote

I have created a sample program with your FD entry and a job with a similar DD entry. It generates 10 output records via 10 WRITE statements. Thus far, no problems. Maybe it's a logic problem?
Back to top
View user's profile Send private message
Deepubonds
Beginner


Joined: 08 Mar 2005
Posts: 16
Topics: 2

PostPosted: Tue Mar 08, 2005 3:25 pm    Post subject: Reply with quote

Suresh,
Thanks for your suggestion.

I tried changing FB to FBA, but it didnt work. If I only change the record length to 133 it would work. But, I am trying to understand why even if I have 132 in JCL & the record length in program as 132, why is it giving U1035.

I am guessing whether WRITE with ADVANCING is causing this.
Back to top
View user's profile Send private message
Deepubonds
Beginner


Joined: 08 Mar 2005
Posts: 16
Topics: 2

PostPosted: Tue Mar 08, 2005 4:42 pm    Post subject: Reply with quote

I guess I found the answer :

With ADV in effect, the compiler adds 1 byte to the record length to account for the
printer control character.

Thanks,
Deepubonds
Back to top
View user's profile Send private message
Deepubonds
Beginner


Joined: 08 Mar 2005
Posts: 16
Topics: 2

PostPosted: Tue Mar 08, 2005 4:54 pm    Post subject: Reply with quote

ADV is the COMPILER option, that I am talking about. The compiler had an default ADV option.

When I compiled the program with NOADV compiler option, the program & JCL worked.

Thanks to all for their suggestions.!
Back to top
View user's profile Send private message
dtf
Beginner


Joined: 10 Dec 2004
Posts: 110
Topics: 8
Location: Colorado USA

PostPosted: Wed Mar 09, 2005 10:22 am    Post subject: Reply with quote

You have "solved" this, but now, you need a clear understanding of what you have "learned". The bottom line is that if you want carriage control to work, you do need FBA or FBM as a RECFM. If you have the ADV option set, I think that if you look at the file attributes when the file is created, i.e. when you add the byte to allow it to be created, that the RECFM will show up as being FBA.

You may in fact be able to leave the DCB information completely off of the JCL. Give that a try and see. I am not positive that will work for an output defined as going to SYSOUT, but it should for an output going to a file since the program has defined the LRECL, the RECFM, and the system should be able to determine the BLKSIZE.

The bottom line is that I would encourage you to play around with this a little more. That should give you a clearer understanding of how it works.
________
grape ape


Last edited by dtf on Tue Feb 01, 2011 1:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Mar 09, 2005 10:27 am    Post subject: Reply with quote

Deepbounds,

Glad that you found the solution. Check this link which explains in detail about ADV( look for the posts by me)

http://www.mvsforums.com/helpboards/viewtopic.php?t=750&highlight=noadv

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group