Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 252
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: 4650
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us