View previous topic :: View next topic |
Author |
Message |
Deepubonds Beginner
Joined: 08 Mar 2005 Posts: 16 Topics: 2
|
Posted: Tue Mar 08, 2005 2:24 pm Post subject: U1035 - FILE ATTRIBUTE MISMATCH ERROR |
|
|
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 |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue Mar 08, 2005 3:02 pm Post subject: |
|
|
deepubonds,
Throw RECORDING MODE IS F into the FD section and see what happens. |
|
Back to top |
|
|
Deepubonds Beginner
Joined: 08 Mar 2005 Posts: 16 Topics: 2
|
Posted: Tue Mar 08, 2005 3:06 pm Post subject: |
|
|
I have already tried with these options.
RECORDING MODE IS F
RECORD CONTAINS 132 CHARACTERS |
|
Back to top |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue Mar 08, 2005 3:12 pm Post subject: |
|
|
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 |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Mar 08, 2005 3:21 pm Post subject: |
|
|
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 |
|
|
Deepubonds Beginner
Joined: 08 Mar 2005 Posts: 16 Topics: 2
|
Posted: Tue Mar 08, 2005 3:25 pm Post subject: |
|
|
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 |
|
|
Deepubonds Beginner
Joined: 08 Mar 2005 Posts: 16 Topics: 2
|
Posted: Tue Mar 08, 2005 4:42 pm Post subject: |
|
|
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 |
|
|
Deepubonds Beginner
Joined: 08 Mar 2005 Posts: 16 Topics: 2
|
Posted: Tue Mar 08, 2005 4:54 pm Post subject: |
|
|
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 |
|
|
dtf Beginner
Joined: 10 Dec 2004 Posts: 110 Topics: 8 Location: Colorado USA
|
Posted: Wed Mar 09, 2005 10:22 am Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|