IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Report Writing without REPORT WRITER!!!


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Wed Mar 29, 2006 10:44 pm
Reply with quote

Hi,

It came to me as a Huge shock when I came to know that REPORT WRITER is not present in the compiler in my shop icon_eek.gif

Any way, I took care of my report, except one detail.

I need a new page in the report when writing a new customer data. i.e. I have written the old customer data in 2 and a half pages, and the next customers data should come in the new page, NOT in the middle of the last page written. I thought EJECT would do, but I see it here that EJECT is used for cobol program listing to appear on a new page and is coded before the procedure section. Now is there a procedure section verb i can use?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Mar 30, 2006 6:51 am
Reply with quote

It depends. If you're using "AFTER ADVANCING" YOU WRITE PRT-REC AFTER ADVANCING PAGE.

If you're putting in your own CCs (cntl chars) in the 1st char of each line, move a "1" to the CC then WRITE the line.
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Thu Mar 30, 2006 5:11 pm
Reply with quote

Thanks Jack,

But shouldn't the PAGE be defined here, if I am not using CC's?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Apr 01, 2006 5:09 am
Reply with quote

Hi N2C,

I'm not sure I understand your ques. But PAGE tells the compiler to put a "1" in the 1st pos of the rec you WRITE with that stmt. That in turn tells the printer to skip to the top of a new page before the line is printed.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Sat Apr 01, 2006 5:34 pm
Reply with quote

hy new2cobol,

note: what mmwife wants to explain to you...
the file you create should be RECFM=FBA, for A means
1 byte in beginning of this file as ASA-character.
with this position, you are able to put linefeeds, pagefeeds aso.
for structuring your report (there is no need to write empty lines!).

now with these special WRITE statements, you do not have
to do this yourself, i.e. AFTER ADVANCING PAGE

if you send your file to any host printer, this behaviour
will create you a nice rport.
note: maybe not working for LAN printer!

martin9
Back to top
View user's profile Send private message
new2cobol

New User


Joined: 04 Jan 2006
Posts: 77
Location: Bangalore

PostPosted: Sun Apr 02, 2006 2:08 am
Reply with quote

Thanks Jack and Martin,

I now understand what you are saying...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
Search our Forums:

Back to Top