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
 
Advancing phrase.

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

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Sat Jan 15, 2011 12:03 pm    Post subject: Advancing phrase.
Reply with quote

Hi,
I am trying to generate report using ADVANCING PHRASE in cobol.
Following is the statement used:

WRITE PRINTLINE FROM HEADR-2 AFTER ADVANCING 3 LINES

As per understanding 2 blank lines should be inserted.

But no blanks line are inserted and it is printed just below the previous line. May you help how i am going wrong.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jan 15, 2011 12:22 pm    Post subject:
Reply with quote

Hello,

Write the print output to a dataset and then browse this dataset. Make sure you look in column 1 as this is where the "spacing" is stored.

Quote:
As per understanding 2 blank lines should be inserted.
A bit of a misunderstanding. . .

When printed, 2 lines should be advanced, but there is no reason to clutter the output and waste space by actually generating physical blank lines.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Sat Jan 15, 2011 5:55 pm    Post subject:
Reply with quote

Quote:
As per understanding 2 blank lines should be inserted.
This is wrong. Mainframe printers, for more than 40 years, have supported the concept of carriage control. A special character in column 1 (the carriage control column) indicates to the printer that it should skip two lines before printing the rest of the data on that line. There are other special characters to cause the printer to go to the top of the next page, double space, overprint, and so forth.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Sat Jan 15, 2011 8:45 pm    Post subject:
Reply with quote

If you browse a FBA dataset, use CC and NOCC commands to turn display of the carrage control charcters on and off, respectively.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

PostPosted: Mon Jan 17, 2011 8:32 am    Post subject:
Reply with quote

An interesting SAS usage:

At many installations, SAS logs show error messages in three consecutive lines. This seems odd, until you view column 1 and see that the CC character for the 2nd and 3rd error message lines is "+" (do not advance), causing a triple print on an actual line printer, hence showing these lines bolder due to overprinting.
Back to top
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 111
Location: Puerto Rico

PostPosted: Tue Jan 18, 2011 8:06 pm    Post subject:
Reply with quote

Your problem might be with the compler option "ADV", specifying "ADV" wil add 1 byte to your record length for the carriage control. "NOADV" with a record length of 132 for your print output will not skip or space more than 1 line because the CC byte is not included in your output but If you have 133 as your print line length then it should work.
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 Making Reference Phrase field " ... Casper656 TSO/ISPF 11 Thu Feb 05, 2015 7:05 pm
No new posts query in rounded phrase in cobol poongs COBOL Programming 2 Fri Oct 02, 2009 5:24 pm
No new posts Inspecting a phrase and replacing bamohan COBOL Programming 3 Tue Mar 24, 2009 8:46 am
No new posts Write after page/advancing sriramvempaty COBOL Programming 5 Sat Jun 28, 2008 1:03 pm
No new posts AFTER ADVANCING in Cobol pgm krk_kumar1 COBOL Programming 4 Mon Aug 13, 2007 3:31 pm

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