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

A question about report


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

New User


Joined: 06 Jul 2006
Posts: 31

PostPosted: Wed Aug 16, 2006 10:30 am
Reply with quote

If the file length is 133 then the write statement will add a control field in the first position, is that right?
Is there any other different length will take some special action?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 16, 2006 11:36 pm
Reply with quote

william51 wrote:
If the file length is 133 then the write statement will add a control field in the first position, is that right?

No, it isn't.

william51 wrote:
Is there any other different length will take some special action?

No, there isn't.
Back to top
View user's profile Send private message
william51
Warnings : 1

New User


Joined: 06 Jul 2006
Posts: 31

PostPosted: Thu Aug 17, 2006 9:12 am
Reply with quote

So,where does the first byte come from in the report file which length is 133?
The report only contain 132 bytes.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Thu Aug 17, 2006 12:48 pm
Reply with quote

Hi,

Can you check if your JCL is having RECFM=FBA. Here, the "A" in "FBA" is the attribute byte.

Note that if you brose the file (using line command 'b' in DSLIST/3.4) you will see that its just 132 bytes. But if you use view command (v) in DSLIST , you will actually see the first byte as an ANSI carriage control character.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Aug 17, 2006 1:27 pm
Reply with quote

You can read more about Control Characters in the fine manual.

O.
Back to top
View user's profile Send private message
william51
Warnings : 1

New User


Joined: 06 Jul 2006
Posts: 31

PostPosted: Fri Aug 18, 2006 10:28 am
Reply with quote

Thanks,I think it is the 'A' for attribute cause this situation.
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 Need help on formatting a report DFSORT/ICETOOL 14
No new posts Question for file manager IBM Tools 7
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts question for Pedro TSO/ISPF 2
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top