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: 239
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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


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