MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question about ASA carriage control characters

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
fengling
Beginner


Joined: 09 Jan 2007
Posts: 4
Topics: 2

PostPosted: Wed Aug 08, 2007 8:46 pm    Post subject: Question about ASA carriage control characters Reply with quote

hi pals,
Recently, I am working on reports, which is printed by PLI with commercial logic. All the reports contains ASA carriage at the first column every line(LRECL=133).I have got some info about ASA carriage control:
Mainframe printing in the days of line printers used some very simple control characters to control the movement of the paper through the printer:
Character Meaning
blank Advance paper one line
0 Advance paper two lines
- Advance paper three lines
+ Do not advance; overstrike previous line
Example with ASA carriage control characters:

1This is the first line on the page
0This is the third line on the page
-This is the 6th line on the page
This is the 7th line on the page
+ - Overstrike the 7th line
Example as printed:

This is the first line on the page

This is the third line on the page


This is the 6th line on the page
This is the 7th line on the page - Overstrike the 7th line

I wonder the ability of printing a blank line is controlled by ASA carriage control characters. My question is if my report contains a blank line,whether this blank line is contained in the printed report.
My example is here:
1This is the first line on the page

This is the third line on the page
printed as
This is the first line on the page

This is the third line on the page
Really? thanks my pals.
Back to top
View user's profile Send private message
CICS Guy
Intermediate


Joined: 30 Apr 2007
Posts: 292
Topics: 3

PostPosted: Thu Aug 09, 2007 12:56 am    Post subject: Re: Question about ASA carriage control characters Reply with quote

fengling wrote:
I wonder the ability of printing a blank line is controlled by ASA carriage control characters. My question is if my report contains a blank line,whether this blank line is contained in the printed report.
If I understand your question, yes.
Create your test output and send it to the output queue, set hex on and you will see a full line of X'40's for that blank line - you won't see them for the lines between the skips and such.
Back to top
View user's profile Send private message
fengling
Beginner


Joined: 09 Jan 2007
Posts: 4
Topics: 2

PostPosted: Thu Aug 09, 2007 6:41 am    Post subject: Reply with quote

thanks a lot.
Besides the question above, I am paying more attention to the report printed by real printer, not stored in dataset. Because I've not seen a report producted by Mainframe with 132 char(ASA control character is removed) in paper. I am doing some test about all the system control reports.I don't known how to print this 133 char report, My workplace has network IBM printer and My OS is Windows. If done, I think I'll get rid of puzzledom. but when I download the report as .txt ,the report is printed as in dataset with carriage control characters. Who can tell me how I can get the finial report. All the reports will be sent to RMDS. but in test environment, the RMDS is not work, and I've nerver got any experiences about RMDS.
if any one has experience, please give me a suggestion. All the report will be read by BA, I must do it seriously.
thanks a lot for sharing.
Back to top
View user's profile Send private message
JanM
Beginner


Joined: 29 May 2006
Posts: 9
Topics: 0

PostPosted: Fri Aug 10, 2007 6:34 am    Post subject: Reply with quote

fengling,
A blank line of 133 characters consists of two parts, a one-byte ASA control character followed by 132 bytes of data, which all happen to be blank.
Since the control character is a blank, the line of data will be printed on the next line.
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Aug 13, 2007 10:37 am    Post subject: Reply with quote

While most network printers will handle the '+' overprint control character, I've seen problems with it when collecting reports into a repository product. The two lines may show separate rather than merged onto one.

Because very few printers actually overprint lines anymore (usually as a means to create BOLD print), it would be best to stop using the '+' print control char.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Wed Aug 22, 2007 5:48 am    Post subject: Reply with quote

Fengling,

Some more info:
Code:

CHARACTER CODE RESULTING CARRIAGE CONTROL OPERATION   
 
BLANK          SPACE 1 LINE                           
0              SPACE 2 LINES                           
-              SPACE 3 LINES                           
+              SUPPRESS SPACE                         
1              SKIP TO CHANNEL1                       
2              SKIP TO CHANNEL2                       
3              SKIP TO CHANNEL3                       
4              SKIP TO CHANNEL4                       
5              SKIP TO CHANNEL5                       
6              SKIP TO CHANNEL6                       
7              SKIP TO CHANNEL7                       
8              SKIP TO CHANNEL8                       
9              SKIP TO CHANNEL9                       
A              SKIP TO CHANNEL10                       

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group