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
 

 

Why do we need to code a extra byte ,whenever we are coding

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rao_kulkarni

New User


Joined: 14 Mar 2005
Posts: 4

PostPosted: Wed Mar 22, 2006 6:16 pm    Post subject: Why do we need to code a extra byte ,whenever we are coding
Reply with quote

"Why do we need to code a extra byte , whenever we are coding record
length for printer files?

What kind of information does this extra byte contains?
Does it contain information related data transfer like baud rate and other
parameter correct me if I am wrong?
Back to top
View user's profile Send private message

dneufarth

Active User


Joined: 27 Apr 2005
Posts: 241
Location: Cincinnati OH USA

PostPosted: Wed Mar 22, 2006 7:02 pm    Post subject:
Reply with quote

used for line spacing and new page indicators/commands (ansi or machine code)
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Wed Mar 22, 2006 7:18 pm    Post subject: Re: Why do we need to code a extra byte ,whenever we are cod
Reply with quote

When creating code for a text-based print file (which I haven't done in a looong time), I always reserve two bytes at the beginning of the dataset. The first is for any ANSI Carriage Control characters I may want to use, and the second is for any Table Reference Character (TRC) characters I may want to use for printer font control.
Back to top
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Thu Mar 23, 2006 8:55 am    Post subject: Re: Why do we need to code a extra byte ,whenever we are cod
Reply with quote

That is for Carraige Control.
If you open your report in VIEW or EDIT mode I think you can see them.
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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts 2 byte YEAR from Y'DATE2' field tecnokrat DFSORT/ICETOOL 2 Tue Feb 07, 2017 12:05 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm


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